rapid-sdk
    Preparing search index...

    Function utilArrayIntersection

    • (a ∩ b) Create a set that contains those elements of set a that are also in set b.

      Type Parameters

      • T

      Parameters

      • a: Iterable<T>
      • b: Iterable<T>

      Returns T[]

      result of a ∩ b

      This operation is known as intersection

      let a = [1,2,3];
      let b = [4,3,2];
      utilArrayIntersection(a, b) // returns: [2,3]