ts-utils
    Preparing search index...

    Function xor

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

      Type Parameters

      • Item

        Type of the arrays elements.

      Parameters

      • ...arrays: Item[][]

        The arrays to inspect.

      Returns Item[]

      The new array of filtered values.

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