https://github.com/Tilerphy/ConcurrentTaskSplitor
ES6
for..of
Map
Set
=>
function
nodejs version upper than 4.3.1
nothing
In Node v4.3.1, I cannot use the for(let [key,value] of <Map>)
, otherwise, the code could be less.
If you test in NodeJs, just to run node test.js
or nodejs test.js
If you test in Browsers, please copy the code from source files.
Run npm install xtask
then like this : test-npm.js
var task = {
key:"taskName",
preActions: ["task1", "task3", "task4"],
postActions: [],
};