light-async-filter
v1.0.0-rc0
Published
a light async filter
Downloads
3
Readme
light-async-filter
Installation
yarn add light-async-filter
Usage
import asyncFilter from 'light-async-filter'
const myFilter = v =>
new Promise((resolve, reject) =>
setTimeout(() => (v > 2 ? resolve(v) : reject(v)), 1),
)
const sup3 = await asyncFilter(data)(myFilter)