• Given an array anArray, returns a new array containing the same elements and where each element appears at most once. Mostly a wrapper to the Set object of the standard library.

    Parameters

    • anArray: any[]

      the array with possible duplicates

    Returns any[]

    • the given array without duplicates
    arrayUniq([1,2,3,1,2,3]); // -> [1,2,3]