@lifaon/rx-js-light
Version:
Blazing fast Observables
11 lines (10 loc) • 387 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isNotification = void 0;
var is_object_1 = require("../helpers/is-type/is-object.cjs");
function isNotification(value, name) {
return (0, is_object_1.isObject)(value) && ('name' in value) && ('value' in value) && (name === void 0 || value.name === name);
}
exports.isNotification = isNotification;