1.0.10 • Published 7 years ago

@jondotsoy/filter-async v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

How to install

npm install @jondotsoy/filter-async

How to use

// ES5
const {filterAsync} = require("@jondotsoy/filter-async")
// ES6
import filterAsync from "@jondotsoy/filter-async"

await filterAsync([1, 2, 3, 4, 5, 6, 7, 8], async (el, indexEl, arr) => (el % 2 === 0))
// => [2, 4, 6, 8]

use as array.filterAsync

// ES5
require("@jondotsoy/filter-async/polyfill")
// ES6
import "@jondotsoy/filter-async/polyfill"

await [1, 2, 3, 4, 5, 6, 7, 8].filterAsync(async (el, indexEl, arr) => (el % 2 === 0))
// => [2, 4, 6, 8]
1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago