{ "type": "Script", "span": { "start": 17, "end": 141, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 26, "end": 27, "ctxt": 0 }, "value": "f", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 17, "end": 141, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 30, "end": 141, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 36, "end": 76, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 40, "end": 75, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 40, "end": 59, "ctxt": 0 }, "properties": [ { "type": "KeyValuePatternProperty", "key": { "type": "Identifier", "span": { "start": 42, "end": 51, "ctxt": 0 }, "value": "arguments", "optional": false }, "value": { "type": "Identifier", "span": { "start": 53, "end": 57, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null } } ], "optional": false, "typeAnnotation": null }, "init": { "type": "ObjectExpression", "span": { "start": 62, "end": 75, "ctxt": 0 }, "properties": [ { "type": "Identifier", "span": { "start": 64, "end": 73, "ctxt": 0 }, "value": "arguments", "optional": false } ] }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 81, "end": 139, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 85, "end": 98, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 85, "end": 96, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 85, "end": 89, "ctxt": 0 }, "value": "Math", "optional": false }, "property": { "type": "Identifier", "span": { "start": 90, "end": 96, "ctxt": 0 }, "value": "random", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 100, "end": 139, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 110, "end": 133, "ctxt": 0 }, "argument": { "type": "ArrowFunctionExpression", "span": { "start": 117, "end": 132, "ctxt": 0 }, "params": [], "body": { "type": "Identifier", "span": { "start": 123, "end": 132, "ctxt": 0 }, "value": "arguments", "optional": false }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } ], "interpreter": null }