You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var helperCreateMinMax = require('./helperCreateMinMax')
|
|
|
|
/**
|
|
* 获取最大值
|
|
*
|
|
* @param {Array} arr 数组
|
|
* @param {Function} iterate(item, index, obj) 回调
|
|
* @return {Number}
|
|
*/
|
|
var max = helperCreateMinMax(function (rest, itemVal) {
|
|
return rest < itemVal
|
|
})
|
|
|
|
module.exports = max
|
|
|