rapid-sdk
    Preparing search index...

    Function utilArrayDifference

    • (a \ b) Create a set that contains those elements of set a that are not in set b.

      Type Parameters

      • T

      Parameters

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

      Returns T[]

      result of a \ b

      This operation is also sometimes called minus (-)

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