{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "ArrayPattern", "elements": [ { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 7 } } }, { "type": "ArrayPattern", "elements": [ { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 11 } } }, { "type": "Identifier", "name": "c", "decorators": [], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 14 } } } ], "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 15 } } } ], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 16 } } }, "init": { "type": "ArrayExpression", "elements": [ { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 21 } } }, { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 24 } } } ], "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 25 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 25 } } } ], "kind": "var", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 26 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 17, "column": 26 } } } TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. [arrayDestructuring20.ts:17:9]