util-lib-reduce
v1.0.1
Published
Reduce method of encapsulation integration
Downloads
2
Readme
util-lib-reduce
Reduce method of encapsulation integration
useAge
const { reduce } = require('util-lib-reduce');
let arr = [1, 2, 3, 4, 5];
let result = reduce(arr, function (res, value) {
return res + value;
}, 0)
console.log('result', result);