Quantumbraid's picture
download
raw
624 Bytes
import { isFunction } from './isFunction';
export function hasLift(source) {
return isFunction(source === null || source === void 0 ? void 0 : source.lift);
}
export function operate(init) {
return (source) => {
if (hasLift(source)) {
return source.lift(function (liftedSource) {
try {
return init(liftedSource, this);
}
catch (err) {
this.error(err);
}
});
}
throw new TypeError('Unable to lift unknown Observable type');
};
}
//# sourceMappingURL=lift.js.map

Xet Storage Details

Size:
624 Bytes
·
Xet hash:
369d71e2d82b2f88e6cd91e011e94075354960685c257023ed7ca6a00a49739b

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