p-over-every

1.0.0 • Public • Published

p-over-every

overEvery for Promises (async, no concurrency)

Accepts synchronous and asynchronous (promise-returning) predicates.

It calls functions in order, that is, put your sync predicates at the beginning to optimize for execution time.

Usage

const isPair = x => x % 2
const isGtFour = x => Promise.resolve(> 4)
const predicates = [isPair, isGtFour]
pOverEvery(predicates)(5).then(/* true */)

Inspiration

License

MIT http://gunar.mit-license.org

Package Sidebar

Install

npm i p-over-every

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • gunar