Flocc
    Preparing search index...

    Function max

    • Return the maximum value from an array of numbers.

      max([1, 2, 3]); // returns 3
      max([10]); // returns 10

      max([]); // returns null for empty arrays

      Parameters

      • arr: number[]

      Returns number

      0.2.0