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.
15 lines
302 B
15 lines
302 B
5 months ago
|
var helperCreateMinMax = require('./helperCreateMinMax')
|
||
|
|
||
|
/**
|
||
|
* 获取最小值
|
||
|
*
|
||
|
* @param {Array} arr 数组
|
||
|
* @param {Function} iterate(item, index, obj) 回调
|
||
|
* @return {Number}
|
||
|
*/
|
||
|
var min = helperCreateMinMax(function (rest, itemVal) {
|
||
|
return rest > itemVal
|
||
|
})
|
||
|
|
||
|
module.exports = min
|