UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

449 lines 12.7 kB
{ "type": "Program", "body": [ { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "isArray", "range": [ 11, 18 ], "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 18 } } }, "init": { "type": "LogicalExpression", "operator": "||", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Array", "range": [ 21, 26 ], "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 26 } } }, "property": { "type": "Identifier", "name": "isArray", "range": [ 27, 34 ], "loc": { "start": { "line": 1, "column": 27 }, "end": { "line": 1, "column": 34 } } }, "range": [ 21, 34 ], "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 34 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "x", "range": [ 49, 50 ], "loc": { "start": { "line": 1, "column": 49 }, "end": { "line": 1, "column": 50 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "Identifier", "name": "x", "range": [ 61, 62 ], "loc": { "start": { "line": 1, "column": 61 }, "end": { "line": 1, "column": 62 } } }, "right": { "type": "BinaryExpression", "operator": "===", "left": { "type": "UnaryExpression", "operator": "typeof", "argument": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "x", "range": [ 73, 74 ], "loc": { "start": { "line": 1, "column": 73 }, "end": { "line": 1, "column": 74 } } }, "property": { "type": "Identifier", "name": "length", "range": [ 75, 81 ], "loc": { "start": { "line": 1, "column": 75 }, "end": { "line": 1, "column": 81 } } }, "range": [ 73, 81 ], "loc": { "start": { "line": 1, "column": 73 }, "end": { "line": 1, "column": 81 } } }, "prefix": true, "range": [ 66, 81 ], "loc": { "start": { "line": 1, "column": 66 }, "end": { "line": 1, "column": 81 } } }, "right": { "type": "Literal", "value": "number", "raw": "'number'", "range": [ 86, 94 ], "loc": { "start": { "line": 1, "column": 86 }, "end": { "line": 1, "column": 94 } } }, "range": [ 66, 94 ], "loc": { "start": { "line": 1, "column": 66 }, "end": { "line": 1, "column": 94 } } }, "range": [ 61, 94 ], "loc": { "start": { "line": 1, "column": 61 }, "end": { "line": 1, "column": 94 } } }, "range": [ 54, 95 ], "loc": { "start": { "line": 1, "column": 54 }, "end": { "line": 1, "column": 95 } } } ], "range": [ 52, 97 ], "loc": { "start": { "line": 1, "column": 52 }, "end": { "line": 1, "column": 97 } } }, "generator": false, "expression": false, "range": [ 39, 97 ], "loc": { "start": { "line": 1, "column": 39 }, "end": { "line": 1, "column": 97 } } }, "range": [ 21, 98 ], "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 98 } } }, "range": [ 11, 98 ], "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 98 } } } ], "kind": "var", "range": [ 7, 99 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 99 } }, "leadingComments": [], "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=isArray.js.map", "range": [ 100, 135 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 35 } } } ] }, "specifiers": [], "source": null, "range": [ 0, 99 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 99 } }, "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=isArray.js.map", "range": [ 100, 135 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 35 } } } ] } ], "sourceType": "module", "range": [ 0, 99 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 99 } }, "comments": [ { "type": "Line", "value": "# sourceMappingURL=isArray.js.map", "range": [ 100, 135 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 35 } } } ] }