Function difference

  • Returns a generator of array values not included in the other given arrays using a Set for equality comparisons. The order and references of result values are not guaranteed.

    Example

    [...difference([2, 1], [2, 3])]
    // [1]

    See

    Type Parameters

    • T

    Parameters

    • Rest ...args: Iterable<T>[]

      The initial arrays

    Returns Generator<T, void, unknown>

Generated using TypeDoc