Function intersection

  • Creates an array of unique values that are included in all given arrays using SameValueZero for equality comparisons. The order and references of result values are determined by the first array.

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 7,018 bytes
    • Micro-dash: 125 bytes

    Type Parameters

    • T

    Parameters

    • Rest ...arrays: (Nil | readonly T[])[]

    Returns T[]

Generated using TypeDoc