{ "type": "Script", "span": { "start": 33, "end": 171, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 42, "end": 61, "ctxt": 0 }, "value": "takeFirstTwoEntries", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 62, "end": 105, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 62, "end": 105, "ctxt": 0 }, "rest": { "start": 62, "end": 65, "ctxt": 0 }, "argument": { "type": "ArrayPattern", "span": { "start": 65, "end": 85, "ctxt": 0 }, "elements": [ { "type": "ArrayPattern", "span": { "start": 66, "end": 74, "ctxt": 0 }, "elements": [ { "type": "Identifier", "span": { "start": 67, "end": 69, "ctxt": 0 }, "value": "k1", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 71, "end": 73, "ctxt": 0 }, "value": "v1", "optional": false, "typeAnnotation": null } ], "optional": false, "typeAnnotation": null }, { "type": "ArrayPattern", "span": { "start": 76, "end": 84, "ctxt": 0 }, "elements": [ { "type": "Identifier", "span": { "start": 77, "end": 79, "ctxt": 0 }, "value": "k2", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 81, "end": 83, "ctxt": 0 }, "value": "v2", "optional": false, "typeAnnotation": null } ], "optional": false, "typeAnnotation": null } ], "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 85, "end": 105, "ctxt": 0 }, "typeAnnotation": { "type": "TsArrayType", "span": { "start": 87, "end": 105, "ctxt": 0 }, "elemType": { "type": "TsTupleType", "span": { "start": 87, "end": 103, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 88, "end": 94, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 88, "end": 94, "ctxt": 0 }, "kind": "string" } }, { "type": "TsTupleElement", "span": { "start": 96, "end": 102, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 96, "end": 102, "ctxt": 0 }, "kind": "number" } } ] } } } } } ], "decorators": [], "span": { "start": 33, "end": 110, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 107, "end": 110, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "ExpressionStatement", "span": { "start": 111, "end": 171, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 111, "end": 170, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 111, "end": 130, "ctxt": 0 }, "value": "takeFirstTwoEntries", "optional": false }, "arguments": [ { "spread": { "start": 131, "end": 134, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 134, "end": 169, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 138, "end": 141, "ctxt": 0 }, "value": "Map", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ArrayExpression", "span": { "start": 142, "end": 168, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "ArrayExpression", "span": { "start": 143, "end": 150, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 144, "end": 146, "ctxt": 0 }, "value": "", "raw": "\"\"" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 148, "end": 149, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ] } }, { "spread": null, "expression": { "type": "ArrayExpression", "span": { "start": 152, "end": 167, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 153, "end": 160, "ctxt": 0 }, "value": "hello", "raw": "\"hello\"" } }, { "spread": null, "expression": { "type": "BooleanLiteral", "span": { "start": 162, "end": 166, "ctxt": 0 }, "value": true } } ] } } ] } } ], "typeArguments": null } } ], "typeArguments": null } } ], "interpreter": null }