Buckets:

imerfanrajabee's picture
download
raw
594 Bytes
import { operate } from '../util/lift';
import { createOperatorSubscriber } from './OperatorSubscriber';
export function defaultIfEmpty(defaultValue) {
return operate(function (source, subscriber) {
var hasValue = false;
source.subscribe(createOperatorSubscriber(subscriber, function (value) {
hasValue = true;
subscriber.next(value);
}, function () {
if (!hasValue) {
subscriber.next(defaultValue);
}
subscriber.complete();
}));
});
}
//# sourceMappingURL=defaultIfEmpty.js.map

Xet Storage Details

Size:
594 Bytes
·
Xet hash:
c01c8b7e0576a5cbbc2bb984c71bc8da70ad4460d107322269398a2f8f9a9a99

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.