Skip to content

Pull-stream version of Array.prototype.some returning a promise.

Notifications You must be signed in to change notification settings

srcagency/psp-some

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pull stream some

A pull-stream version of Array.prototype.some returning a promise.

some(test)
const {pull, values, map} = require('pull-stream')
const some = require('psp-some')

pull(
  values(['blue', 'green', 'red']),
  some((x) => x === 'green')
).then(console.log)
// true

pull(
  values(['blue', 'green', 'red']),
  some((x) => x === 'yellow')
).then(console.log)
// false

About

Pull-stream version of Array.prototype.some returning a promise.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published