Returns the range (the maximum value minus the minimum value) of an array.

  • Parameters

    • arr: number[]

      The array

    Returns number