Buckets:
| import { operate } from '../util/lift'; | |
| import { createOperatorSubscriber } from './OperatorSubscriber'; | |
| export function defaultIfEmpty(defaultValue) { | |
| return operate((source, subscriber) => { | |
| let hasValue = false; | |
| source.subscribe(createOperatorSubscriber(subscriber, (value) => { | |
| hasValue = true; | |
| subscriber.next(value); | |
| }, () => { | |
| if (!hasValue) { | |
| subscriber.next(defaultValue); | |
| } | |
| subscriber.complete(); | |
| })); | |
| }); | |
| } | |
| //# sourceMappingURL=defaultIfEmpty.js.map |
Xet Storage Details
- Size:
- 576 Bytes
- Xet hash:
- c50b1ab82b65b874d6fc39d29dc7094cb71c4ba8c39cbb1581100ccbe8c4e803
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.