• Make sure every element in array is unique

    Parameters

    • arr: any[]

      Array that will be filtered in place

    Returns any[]

    Original array

    Please use ASet to create a guaranteed unique array