Options
All
  • Public
  • Public/Protected
  • All
Menu

Module intersection

Index

References

Functions Array

References

Renames and re-exports __type

Array Functions

  • intersection<T>(...arrays: T[][]): T[]
  • 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.

    since

    5.11.0

    example
    intersection([2, 1], [2, 3])
    // => [2]

    Type parameters

    • T = any

    Parameters

    • Rest ...arrays: T[][]

      The arrays to inspect.

    Returns T[]

    Returns the new array of intersecting values.