@lifaon/rx-js-light
Version:
Blazing fast Observables
14 lines (13 loc) • 351 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.notificationObserver = void 0;
function notificationObserver(map) {
return function (notification) {
if (map[notification.name] !== void 0) {
map[notification.name](notification.value);
}
};
}
exports.notificationObserver = notificationObserver;