UNPKG

xe-utils

Version:

JavaScript 函数库、工具类

13 lines (11 loc) • 311 B
import helperCreateMinMax from './helperCreateMinMax.js';/** * 获取最大值 * * @param {Array} arr 数组 * @param {Function} iterate(item, index, obj) 回调 * @return {Number} */ var max = helperCreateMinMax(function (rest, itemVal) { return rest < itemVal }) export default max