smallest
v1.0.1
Published
Get the smallest number in a list
Downloads
10,749
Readme
smallest
Find the smallest number in a list
Install
$ npm install --save smallest
Usage
var smallest = require('smallest')
smallest(1, 2, 4, 3)
//=> 1
API
smallest(values)
-> number
values
Required
Type: array[number]
An array of numbers or a variadic set of numbers.
Related
License
MIT © Ben Drucker