Have ideas to improve npm?Join in the discussion! »

    util-lib-map

    1.0.1 • Public • Published

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

    Install

    npm i util-lib-map

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    2.71 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar