0.0.0 • Published 10 years ago
promise-shall v0.0.0
promise-shall
.then(shall(promise))
shall
receives data passed to it by a promise.then
which it then either uses to call a function passed into it, or ignores if the variable passed in is not callable.
getCar().then(shall(putKeyInIgnition)).
then(shall(turnKey)).
then(shall(drive));
// VROOM!
0.0.0
10 years ago