@vsokolov/utils - v0.32.0
    Preparing search index...

    Function intersection

    • Intersect two arrays intersection([1, 2, 3], [2, 3, 4]) // [2, 3]

      Type Parameters

      • T

      Parameters

      • arr1: T[]

        First array

      • arr2: T[]

        Second array

      Returns T[]

      Array of intersection