• returns a new array made of the non-intersecting items of the two given arrays, it accepts comparator which is invoked to compare elements of arrays.

    Type Parameters

    • T

    Parameters

    • array1: T[]
    • array2: T[]
    • comparator: Function

    Returns T[]

    new filtered exclusive array1

    Example

    xorWith([1,2,3,4], [3,4,5,6], (x,y) => x === y);
    // returns [1,2,5,6];

Generated using TypeDoc