1234567891011121314 |
- 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
|