@mkeen/rxcouch
Version:
Real Time RxJs Based CouchDB Client
12 lines • 548 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.nextIfChanged = exports.entityOrDefault = void 0;
function entityOrDefault(configEntity, defaultValue) {
return configEntity !== undefined ? configEntity : defaultValue;
}
exports.entityOrDefault = entityOrDefault;
function nextIfChanged(behaviorSubject, latestValue) {
latestValue !== undefined && behaviorSubject.value !== latestValue ? behaviorSubject.next(latestValue) : null;
}
exports.nextIfChanged = nextIfChanged;
//# sourceMappingURL=sugar.js.map