DieselDepot-APP/node_modules/es-toolkit/dist/fp/array/isSubset.d.ts
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

20 lines
No EOL
673 B
TypeScript

//#region src/fp/array/isSubset.d.ts
/**
* Creates a predicate that checks whether the piped array is a subset of superset.
*
* Every value in the piped array must be present in superset, using the main
* {@link isSubset} equality behavior.
*
* @template T - The type of elements in the arrays.
* @param superset - The array that may contain all values from the piped array.
* @returns A predicate for the piped array.
*
* @example
* import { isSubset, pipe } from 'es-toolkit/fp';
*
* pipe([1, 2], isSubset([1, 2, 3]));
* // => true
*/
declare function isSubset<T>(superset: readonly T[]): (array: readonly T[]) => boolean;
//#endregion
export { isSubset };