UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

12 lines (11 loc) 351 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.reject = void 0; const main_1 = require("./main"); function reject(pred, coll) { if (arguments.length === 1) { return (theColl) => reject(pred, theColl); } return (0, main_1.filter)((0, main_1.complement)(pred), coll); } exports.reject = reject;