ezyVet Javascript Helper Library Documentation
    Preparing search index...

    Function xorWith

    • 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

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