promise-one-success

Give it an array of promises, returns the first success unless all fail, then it rejects.

Usage no npm install needed!

<script type="module">
  import promiseOneSuccess from 'https://cdn.skypack.dev/promise-one-success';
</script>

README

Promise One Success

Give it an array of promises, returns the first success unless all fail, then it rejects.

npm install --save promise-one-success

See test/index.js for example usage