TS-Scribe - v0.6.2
    Preparing search index...

    Function arrayIntersection

    • Find the intersection of multiple arrays using strict equality (===).

      This function returns a new array containing the elements that are present in all provided arrays. Strict equality (===) is used to compare elements.

      Type Parameters

      • T

      Parameters

      • ...arrays: T[][]

        The arrays to find the intersection of.

      Returns T[]

      An array containing elements that are present in all arrays.

      const result = arrayIntersection([1, 2, 3], [2, 3, 4], [3, 2, 5]);
      console.log(result); // Output: [2, 3]