Chalkboard - v3.0.4
    Preparing search index...

    Function max

    • Returns the maximum value of an array.

      Parameters

      • arr: number[]

        The array

      Returns number

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