npm.io
1.0.3 • Published 2 years ago

@types/intersect

Licence
MIT
Version
1.0.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.5K

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 2324 GMT
  • Dependencies: none

Credits

These definitions were written by Noah Overcash.