UNPKG

@bemedev/basifun

Version:
21 lines (19 loc) 531 B
const _switchValue = ({ condition, truthy, falsy }) => { const out = condition ? truthy : falsy; return out; }; function switchValue(condition, truthy, falsy) { const check1 = typeof condition === 'boolean'; return _switchValue({ condition: check1, truthy: _switchValue({ condition, truthy, falsy, }), falsy: _switchValue(condition), }); } const switchV = switchValue; export { switchV, switchValue }; //# sourceMappingURL=switchValue.js.map