util-lib-map

Map method of encapsulation integration

Usage no npm install needed!

<script type="module">
  import utilLibMap from 'https://cdn.skypack.dev/util-lib-map';
</script>

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);