node/rxjs/dist/esm5/internal/operators/timestamp.js
raw| 1 | import { dateTimestampProvider } from '../scheduler/dateTimestampProvider'; |
| 2 | import { map } from './map'; |
| 3 | export function timestamp(timestampProvider) { |
| 4 | if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider; } |
| 5 | return map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); }); |
| 6 | } |
| 7 | //# sourceMappingURL=timestamp.js.map |