UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

11 lines (8 loc) 320 B
import { filter } from './filter.mjs'; import { identity } from '../../function/identity.mjs'; import { negate } from '../function/negate.mjs'; import { iteratee } from '../util/iteratee.mjs'; function reject(source, predicate = identity) { return filter(source, negate(iteratee(predicate))); } export { reject };