UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

10 lines 491 B
/** * Returns a new array with elements that do NOT match the predicate. * @template T * @param {T[]} array - The array to filter. * @param {(value: T, index?: number, array?: T[]) => boolean} fn - The predicate function. * @returns {T[]} Array of rejected values. * @throws {TypeError} If array is not an array or fn is not a function. */ export default function reject<T>(array: T[], fn: (value: T, index?: number, array?: T[]) => boolean): T[]; //# sourceMappingURL=reject.d.ts.map