oneByOne.js
Array.forEach replacement for async operations
oneByOne.js allows you to loop over a array and execute some async operations. Method itself returns a promise and resolves into an array of results of executions just like Promise.all
.
Difference from Promise.all
is, your actions are executed sequentially and you have access to previous results.
Example 1:
; 'a' 'b' 'c' 'd';
Example 2:
; 'a' 'b' 'c' 'd';
It does not export anything, so you just include it.