Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

max

Max value utility

Installation

$ component install component/max

API

max(array)

Return the max value in array:

max([1,5,6,1,2,0])

max(array, fn)

Max value in array with callback fn(val, i):

varage=max(users,function(u){returnu.age})

max(array, string)

Max value in array with the given property string:

varage=max(users,'age')

License

MIT

About

max value in array -- max(users, 'age')

Resources

Stars

2 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages