Pacote
    Preparing search index...

    Function unique

    • Returns a new array containing the first occurrence of each distinct value.

      Type Parameters

      • T

      Parameters

      • array: T[]

        Values to deduplicate.

      Returns T[]

      A new array with duplicates removed, preserving their first-seen order.