0.3.0 • Published 5 years ago

async-array-extends v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

async-array-extends

asyncMap

Usage

const { asyncMap } = require('async-array-extends')

function sleep() {
    return new Promise((res, rej) => {
        setTimeout(res, 1000)
    })
}

async function test() {
    await map([1,2,3], async(item) => {
        await sleep()
        console.log(item)
    })
}

test()
0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago