Chalkboard - v3.0.4
    Preparing search index...

    Function toSet

    • Converts an array to a set.

      Parameters

      • arr: number[]

        The array

      Returns ChalkboardSet<number>

      const result = Chalkboard.stat.toSet([1, 1, 2, 3, 5]); // Returns the set {1, 2, 3, 5}