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

Package detail

ml-array-min

mljs1.7mMIT1.2.3TypeScript support: included

Get the minimum value in an array

readme

array-min

NPM version npm download

Get the minimum value in an array.

Installation

$ npm install --save ml-array-min

Usage

import min from 'ml-array-min';

const result = min([1, 5, 3, 2, 4]);
// 1

License

MIT