• 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[]
    • Rest ...values: T[][]

    Returns any[]

    {Array}

    Example

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

    Example

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

Generated using TypeDoc