array-max
Get the maximum value in an array.
Installation
$ npm install --save ml-array-max
Usage
import max from 'ml-array-max';
const result = max([1, 5, 3, 2, 4]);
// 5
Get the maximum value in an array.
$ npm install --save ml-array-max
import max from 'ml-array-max';
const result = max([1, 5, 3, 2, 4]);
// 5
npm i ml-array-max
393,530
1.2.4
MIT
7.9 kB
8