1
This commit is contained in:
14
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/max.js
Normal file
14
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/max.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user