ezyVet Javascript Helper Library Documentation
    Preparing search index...

    Function arraysDifference

    • It's the function that takes an array as the first parameter, and takes n number of arrays as the second parameter, and then compares the two to find the arraysDifference.

      Type Parameters

      • T

      Parameters

      • array: T[]
      • ...values: T[][]

      Returns any[]

      {Array}

      arraysDifference([1, 2, 3, 4], [1, 2]);
      // return [3, 4]
      arraysDifference([1, 2, 3, 4], [1, 2], [3])
      // return [4]