Function xor

Creates an array of unique values that are not duplicated in others arrays.

xor([1, 2], [2, 3]);
// => [1, 3]
  • Type Parameters

    • Item

      Type of the arrays elements.

    Parameters

    • ...arrays: Item[][]

      The arrays to inspect.

    Returns Item[]

    The new array of filtered values.