Promdash
Lodash implementation in ES6 Promises.
API
Lodash on the instance
All functions listed in the lodash API are added to the Promise class.
; let promise = ; promise ; // [3, 4, 5]
Lodash on the class
Lodash is also available statically:
; Promdash ; // [3, 4, 5]
.then(Promise[])
Every Promdash method, including then()
, resolves arrays of promises.
; Promdash // resolves all promses... then // again, resolves all promises ; // This is equivalent to doing:Promise allpromises
.from()
If you need to need to convert an instance of Promise
in to an instance of Promdash
, use the .from()
function:
;; let promise = reqwest;Promdash;
How?
Simply an extended Promise class that has a then
method for every lodash function.
The lodash version is completely up to you. If you install lodash before installing promdash, promdash will pick up whatever version of lodash you're using. If you just install promdash, it will use the latest, stable version of lodash.
Installation
npm i promdash