I always thing having a synchronous implementation on file before starting is extremely helpful when trying to work out what the asynchronous implementation should look like.
Note the parallels with the promises implementation I submitted. We write the same code except for adding Promises.all to convert an array of promises to a promise for an array and using $.then(function (@) { instead of var @ = $
I always thing having a synchronous implementation on file before starting is extremely helpful when trying to work out what the asynchronous implementation should look like.
Note the parallels with the promises implementation I submitted. We write the same code except for adding
Promises.all
to convert an array of promises to a promise for an array and using$.then(function (@) {
instead ofvar @ = $