UNPKG

@bemedev/basifun

Version:
24 lines (21 loc) 576 B
'use strict'; 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; exports.switchV = switchV; exports.switchValue = switchValue; //# sourceMappingURL=switchValue.cjs.map