Namespace
ArrayUtils
Finds the maximum value in an array of numbers.
An array of numbers
The maximum value in the array
const numbers = [5, 10, 2, 8];const maxValue = maxArray(numbers);console.log(maxValue); // Output: 10 Copy
const numbers = [5, 10, 2, 8];const maxValue = maxArray(numbers);console.log(maxValue); // Output: 10
Generated using TypeDoc
ArrayUtils
Finds the maximum value in an array of numbers.