async-array-extends

0.3.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i async-array-extends

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

1.01 kB

Total Files

3

Last publish

Collaborators

  • gavinning