when-all
normalize an object/array where some value may be wrapped in Results
Installation
$ {package mananger} install jkroso/when-all
With npm
$ npm install --save when-all
then in your app:
var all =
API
all(x)
Create a Result for a new x
with all values lifted out of their Results
Example
You could decorate a function so it can take Results as arguments.
var all = { return { var self = this return }} var asyncCompare =
Running the tests
$ make
Then open your browser to.