Have ideas to improve npm?Join in the discussion! »

greatest

1.0.2 • Public • Published

greatest Build Status

Find the largest number in a list

Install

$ npm install --save greatest

Usage

var greatest = require('greatest')
 
greatest(1, 2, 4, 3)
//=> 4

API

greatest(values) -> number

values

Required
Type: array[number]

An array of nubmers or a variadic set of numbers.

License

MIT © Ben Drucker

Install

npm i greatest

DownloadsWeekly Downloads

35

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avatar