Home > rc-js-util > arrayMax
Find the largest number in an array, if the array is empty the return is -Infinity.
Signature:
export declare function arrayMax(numbers: ArrayLike<number>): number;
Parameter | Type | Description |
---|---|---|
numbers | ArrayLike<number> |
Returns:
number
See arrayMax().