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) 211 B
var takeFirstNoneFalsyValueOrLast=function(){"use strict";return function(){const t=Array.prototype.slice.call(arguments),r=t.find((t=>!!t));return void 0===r?t.pop():r}}();//# sourceMappingURL=index.min.js.map