diff options
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/operators/timestamp.js')
| -rw-r--r-- | node_modules/rxjs/dist/esm5/internal/operators/timestamp.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js b/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js new file mode 100644 index 0000000..413265e --- /dev/null +++ b/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js @@ -0,0 +1,7 @@ +import { dateTimestampProvider } from '../scheduler/dateTimestampProvider'; +import { map } from './map'; +export function timestamp(timestampProvider) { + if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider; } + return map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); }); +} +//# sourceMappingURL=timestamp.js.map
\ No newline at end of file |
