Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k0pernikus/ed2788130d15aca80cbdaf398da89719 to your computer and use it in GitHub Desktop.
Save k0pernikus/ed2788130d15aca80cbdaf398da89719 to your computer and use it in GitHub Desktop.
highland error promise rejection
highland(range).map((i) => {
return highland(createPromise(i));
})
.flatten()
.errors((error, push) => {
if (error) {
push(null, null);
}
})
.compact()
.toArray((items) => console.log(items));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment