Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/arrays/arraysDifference

Index

Functions

Functions

Const arraysDifference

  • arraysDifference<T>(array: T[], ...values: Array<T[]>): any[]
  • 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.

    example

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

    example

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

    Type parameters

    • T

    Parameters

    • array: T[]
    • Rest ...values: Array<T[]>

    Returns any[]

    {Array}

Generated using TypeDoc