pragmatic-fp-ts
Version:
Opinionated functional programming library with easy use in mind
14 lines (13 loc) • 348 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.none = void 0;
function none(pred, coll) {
if (arguments.length === 1)
return (_coll) => none(pred, _coll);
for (let i = 0; i < coll.length; ++i) {
if (pred(coll[i]))
return false;
}
return true;
}
exports.none = none;