UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

685 lines 17.1 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "isArray", "range": [ 9, 16 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 16 } } }, "imported": { "type": "Identifier", "name": "isArray", "range": [ 9, 16 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 16 } } }, "range": [ 9, 16 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 16 } } } ], "source": { "type": "Literal", "value": "../util/isArray", "raw": "'../util/isArray'", "range": [ 24, 41 ], "loc": { "start": { "line": 1, "column": 24 }, "end": { "line": 1, "column": 41 } } }, "range": [ 0, 42 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 42 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "isNumeric", "range": [ 59, 68 ], "loc": { "start": { "line": 2, "column": 16 }, "end": { "line": 2, "column": 25 } } }, "params": [ { "type": "Identifier", "name": "val", "range": [ 69, 72 ], "loc": { "start": { "line": 2, "column": 26 }, "end": { "line": 2, "column": 29 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "isArray", "range": [ 361, 368 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 19 } } }, "arguments": [ { "type": "Identifier", "name": "val", "range": [ 369, 372 ], "loc": { "start": { "line": 7, "column": 20 }, "end": { "line": 7, "column": 23 } } } ], "range": [ 361, 373 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 24 } } }, "prefix": true, "range": [ 360, 373 ], "loc": { "start": { "line": 7, "column": 11 }, "end": { "line": 7, "column": 24 } } }, "right": { "type": "BinaryExpression", "operator": ">=", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "-", "left": { "type": "Identifier", "name": "val", "range": [ 378, 381 ], "loc": { "start": { "line": 7, "column": 29 }, "end": { "line": 7, "column": 32 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "parseFloat", "range": [ 384, 394 ], "loc": { "start": { "line": 7, "column": 35 }, "end": { "line": 7, "column": 45 } } }, "arguments": [ { "type": "Identifier", "name": "val", "range": [ 395, 398 ], "loc": { "start": { "line": 7, "column": 46 }, "end": { "line": 7, "column": 49 } } } ], "range": [ 384, 399 ], "loc": { "start": { "line": 7, "column": 35 }, "end": { "line": 7, "column": 50 } } }, "range": [ 378, 399 ], "loc": { "start": { "line": 7, "column": 29 }, "end": { "line": 7, "column": 50 } } }, "right": { "type": "Literal", "value": 1, "raw": "1", "range": [ 402, 403 ], "loc": { "start": { "line": 7, "column": 53 }, "end": { "line": 7, "column": 54 } } }, "range": [ 378, 403 ], "loc": { "start": { "line": 7, "column": 29 }, "end": { "line": 7, "column": 54 } } }, "right": { "type": "Literal", "value": 0, "raw": "0", "range": [ 408, 409 ], "loc": { "start": { "line": 7, "column": 59 }, "end": { "line": 7, "column": 60 } } }, "range": [ 377, 409 ], "loc": { "start": { "line": 7, "column": 28 }, "end": { "line": 7, "column": 60 } } }, "range": [ 360, 409 ], "loc": { "start": { "line": 7, "column": 11 }, "end": { "line": 7, "column": 60 } } }, "range": [ 353, 410 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 61 } }, "leadingComments": [ { "type": "Line", "value": " parseFloat NaNs numeric-cast false positives (null|true|false|\"\")", "range": [ 80, 148 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 72 } } }, { "type": "Line", "value": " ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")", "range": [ 153, 236 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 87 } } }, { "type": "Line", "value": " subtraction forces infinities to NaN", "range": [ 241, 280 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 43 } } }, { "type": "Line", "value": " adding 1 corrects loss of precision from parseFloat (#15100)", "range": [ 285, 348 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 67 } } } ] } ], "range": [ 74, 412 ], "loc": { "start": { "line": 2, "column": 31 }, "end": { "line": 8, "column": 1 } } }, "generator": false, "expression": false, "range": [ 50, 412 ], "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 8, "column": 1 } }, "leadingComments": [], "trailingComments": [] }, "specifiers": [], "source": null, "range": [ 43, 412 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 8, "column": 1 } } }, { "type": "EmptyStatement", "range": [ 413, 414 ], "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 1 } }, "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=isNumeric.js.map", "range": [ 415, 452 ], "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 37 } } } ] } ], "sourceType": "module", "range": [ 0, 414 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 9, "column": 1 } }, "comments": [ { "type": "Line", "value": " parseFloat NaNs numeric-cast false positives (null|true|false|\"\")", "range": [ 80, 148 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 72 } } }, { "type": "Line", "value": " ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")", "range": [ 153, 236 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 87 } } }, { "type": "Line", "value": " subtraction forces infinities to NaN", "range": [ 241, 280 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 43 } } }, { "type": "Line", "value": " adding 1 corrects loss of precision from parseFloat (#15100)", "range": [ 285, 348 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 67 } } }, { "type": "Line", "value": "# sourceMappingURL=isNumeric.js.map", "range": [ 415, 452 ], "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 37 } } } ] }