DieselDepot-APP/node_modules/es-toolkit/dist/fp/array/without.d.mts
SJCoetz def597c157 chore: add generated build artifacts and node module type files
add all Next.js build outputs and third-party dependency type declaration files
2026-07-20 01:18:42 +02:00

19 lines
No EOL
594 B
TypeScript

//#region src/fp/array/without.d.ts
/**
* Creates a function that removes the configured values from an array.
*
* The returned function is lazy-capable inside {@link pipe}.
*
* @template T - The type of elements in the array.
* @param values - Values to remove from the piped array.
* @returns A function that maps the piped array to the remaining values.
*
* @example
* import { pipe, without } from 'es-toolkit/fp';
*
* pipe([1, 2, 3, 2], without(2));
* // => [1, 3]
*/
declare function without<T>(...values: T[]): (array: readonly T[]) => T[];
//#endregion
export { without };