js-util

Home > rc-js-util > arrayMin

arrayMin() function

Find the smallest number in an array, if the array is empty the return is Infinity.

Signature:

export declare function arrayMin(numbers: ArrayLike<number>): number;

Parameters

Parameter Type Description
numbers ArrayLike<number>  

Returns:

number

Remarks

See arrayMin().