NewDash

    Function difference

    • Creates an array of array values not included in the other given arrays using SameValueZero for equality comparisons. The order and references of result values are determined by the first array.

      Note: Unlike pullAll, this method returns a new array.

      Parameters

      • array: any

        The array to inspect.

      • ...values: any[]

        The values to exclude.

      Returns any

      Returns the new array of filtered values.

      5.9.0

      union, unionBy, unionWith, without, xor, xorBy, xorWith,

      difference([2, 1], [2, 3])
      // => [1]
    MMNEPVFCICPMFPCPTTAAATR