UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

358 lines 8.75 kB
{ "type": "Program", "body": [ { "type": "ExportNamedDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "isDate", "range": [ 16, 22 ], "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 22 } } }, "params": [ { "type": "Identifier", "name": "value", "range": [ 23, 28 ], "loc": { "start": { "line": 1, "column": 23 }, "end": { "line": 1, "column": 28 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "BinaryExpression", "operator": "instanceof", "left": { "type": "Identifier", "name": "value", "range": [ 43, 48 ], "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 2, "column": 16 } } }, "right": { "type": "Identifier", "name": "Date", "range": [ 60, 64 ], "loc": { "start": { "line": 2, "column": 28 }, "end": { "line": 2, "column": 32 } } }, "range": [ 43, 64 ], "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 2, "column": 32 } } }, "right": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "isNaN", "range": [ 69, 74 ], "loc": { "start": { "line": 2, "column": 37 }, "end": { "line": 2, "column": 42 } } }, "arguments": [ { "type": "UnaryExpression", "operator": "+", "argument": { "type": "Identifier", "name": "value", "range": [ 76, 81 ], "loc": { "start": { "line": 2, "column": 44 }, "end": { "line": 2, "column": 49 } } }, "prefix": true, "range": [ 75, 81 ], "loc": { "start": { "line": 2, "column": 43 }, "end": { "line": 2, "column": 49 } } } ], "range": [ 69, 82 ], "loc": { "start": { "line": 2, "column": 37 }, "end": { "line": 2, "column": 50 } } }, "prefix": true, "range": [ 68, 82 ], "loc": { "start": { "line": 2, "column": 36 }, "end": { "line": 2, "column": 50 } } }, "range": [ 43, 82 ], "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 2, "column": 50 } } }, "range": [ 36, 83 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 51 } } } ], "range": [ 30, 85 ], "loc": { "start": { "line": 1, "column": 30 }, "end": { "line": 3, "column": 1 } } }, "generator": false, "expression": false, "range": [ 7, 85 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 3, "column": 1 } }, "leadingComments": [], "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=isDate.js.map", "range": [ 86, 120 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 34 } } } ] }, "specifiers": [], "source": null, "range": [ 0, 85 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 1 } }, "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=isDate.js.map", "range": [ 86, 120 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 34 } } } ] } ], "sourceType": "module", "range": [ 0, 85 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 1 } }, "comments": [ { "type": "Line", "value": "# sourceMappingURL=isDate.js.map", "range": [ 86, 120 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 34 } } } ] }