Array.max()

Return the highest number of the array

Parameters

NameTypeDescription
1arraynumber[]

Return value

number

the result

Usage

import {NumArray} from '@lcluber/type6js';

let array = [1,2,3];
let max = NumArray.max(array);
console.log(max); //3