2.2.0 • Published 11 months ago

@aegenet/belt-array-async-map v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

npm version

@aegenet/belt-array-async-map

Array async map (sequentially)

💾 Installation

yarn add @aegenet/belt-array-async-map@^2.0.0
# or
npm i @aegenet/belt-array-async-map@^2.0.0

📝 Usage

import { arrayAsyncMap } from '@aegenet/belt-array-async-map';

const result = await arrayAsyncMap(
  [
    {
      id: 5,
      value: 'Yo',
    }, {
      id: 7,
      value: 'Ho',
    }
  ],
  (value, idx, array) => /** a promise */ Promise.resolve(idx)
);
// result = [0, 1]
2.2.0

11 months ago

2.1.0

12 months ago

1.6.2

1 year ago

1.7.0

1 year ago

1.6.1

1 year ago

2.0.0

1 year ago

1.5.0

1 year ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago