Installation
npm install --save @types/intersect
Summary
This package contains type definitions for intersect (https://github.com/juliangruber/intersect).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/intersect.
index.d.ts
declare const intersect: {
/**
* Find the intersection of arrays a and b.
* The individual arrays are expected to be sets, i.e. there's no duplicate elements in them.
*/
<T>(a: readonly T[], b: readonly T[]): T[];
/**
* Find the intersection of all subarrays.
* The individual arrays are expected to be sets, i.e. there's no duplicate elements in them.
*/
<T>(arrays: ReadonlyArray<readonly T[]>): T[];
/**
* Find the intersection of two large arrays.
* May perform better than default when there are over approximately 125 elements
*/
big<T>(a: readonly T[], b: readonly T[]): T[];
};
export = intersect;
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: none
Credits
These definitions were written by Noah Overcash.