1.0.3 • Published 6 months ago
@types/intersect v1.0.3
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
// Type definitions for intersect 1.0
// Project: https://github.com/juliangruber/intersect
// Definitions by: Noah Overcash <https://github.com/ncovercash>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: ReadonlyArray<T>, b: ReadonlyArray<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<ReadonlyArray<T>>): T[];
/**
* Find the intersection of two large arrays.
* May perform better than default when there are over approximately 125 elements
*/
big<T>(a: ReadonlyArray<T>, b: ReadonlyArray<T>): T[];
};
export = intersect;
Additional Details
- Last updated: Sun, 30 May 2021 15:31:20 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Noah Overcash.