UNPKG

first-none-falsy-value-or-last

Version:

a function which returns the first none falsy value or the last value, if alle values are falsy

2 lines (1 loc) 169 B
function o(){const o=Array.prototype.slice.call(arguments),t=o.find((o=>!!o));return void 0===t?o.pop():t}export{o as default};//# sourceMappingURL=index.esm.min.js.map