Options
All
  • Public
  • Public/Protected
  • All
Menu

Module xor

Index

References

Functions Array

References

Renames and re-exports xor

Array Functions

  • xor<T>(...arrays: T[][]): T[]
  • Creates an array of unique values that is the symmetric difference of the given arrays. The order of result values is determined by the order they occur in the arrays.

    since

    5.7.0

    see

    difference,union,unionBy,unionWith,without,xorBy,xorWith

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

    Type Parameters

    • T

    Parameters

    • Rest ...arrays: T[][]

      [] The arrays to inspect.

    Returns T[]

    Array Returns the new array of filtered values.