js-util

Home > rc-js-util > arrayMax

arrayMax() function

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;

Parameters

Parameter Type Description
numbers ArrayLike<number>  

Returns:

number

Remarks

See arrayMax().