Skip to content

gunar/p-over-every

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 pOverEvery = require('p-over-every')

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

Inspiration

License

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

About

overEvery for Promises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published