source: node_modules/es-toolkit/dist/compat/array/reject.mjs@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 320 bytes
Line 
1import { filter } from './filter.mjs';
2import { identity } from '../../function/identity.mjs';
3import { negate } from '../function/negate.mjs';
4import { iteratee } from '../util/iteratee.mjs';
5
6function reject(source, predicate = identity) {
7 return filter(source, negate(iteratee(predicate)));
8}
9
10export { reject };
Note: See TracBrowser for help on using the repository browser.