{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 14 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 6 } } }, "init": null, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 6 } } } ], "kind": "var", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 15 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "ArrayPattern", "elements": [ { "type": "AssignmentPattern", "left": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 18, "column": 6 }, "end": { "line": 18, "column": 7 } } }, "right": { "type": "NumberLiteral", "value": 6, "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 11 } } }, "loc": { "start": { "line": 18, "column": 6 }, "end": { "line": 18, "column": 11 } } }, { "type": "AssignmentPattern", "left": { "type": "Identifier", "name": "c", "decorators": [], "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 14 } } }, "right": { "type": "NumberLiteral", "value": 6, "loc": { "start": { "line": 18, "column": 17 }, "end": { "line": 18, "column": 18 } } }, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 18 } } } ], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 19 } } }, "init": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 23 } } }, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 23 } } } ], "kind": "var", "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 24 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 18, "column": 24 } } } TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. [arrayDestructuring14.ts:18:5]