@types/intersect
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/intersect

Weekly Downloads

180

Version

1.0.3

License

MIT

Unpacked Size

3.9 kB

Total Files

5

Last publish

Collaborators

  • types