Chalkboard - v3.0.4
    Preparing search index...

    Function unique

    • Returns the unique elements of an array.

      Type Parameters

      • T

      Parameters

      • arr: T[]

        The array

      Returns T[]

      const result = Chalkboard.stat.unique([1, 1, 2, 3, 3, 5]); // Returns [1, 2, 3, 5]