patronum
Version:
☄️ Effector utility library delivering modularity and convenience
25 lines (23 loc) • 635 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.either = either;
var _effector = require("effector");
/* eslint-disable @typescript-eslint/no-unused-vars */
function either(filterOptions, then, other) {
if (_effector.is.store(filterOptions, {
sid: "ozzvoc"
})) {
return (0, _effector.combine)({
and: [filterOptions, then, other, (filter, then, other) => filter ? then : other, {
skipVoid: false
}],
or: {
sid: "-5vau2h"
}
});
}
const objectForm = filterOptions;
return either(objectForm.filter, objectForm.then, objectForm.other);
}
;