Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ml-array-max

mljs2.6mMIT1.2.4TypeScript support: included

Get the maximum value in an array

readme

array-max

NPM version npm download

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

License

MIT