util-lib-map
v1.0.1
Published
Map method of encapsulation integration
Downloads
8
Readme
util-lib-map
Map method of encapsulation integration
useAge
const { map } = require('util-lib-map');
let arr = [1, 2, 3, 4, 5, 6, 7];
const res = map(arr, (item, index) => {
console.log(index);
return item * 10;
})
console.log('res', res);