npm install microtask
Execute task on next event loop / tick
* param Function task - the function to call
* param Array args - array of arguments
* param Object context - task context
Example:
``js``
function myTask(a,b,c){
console.log(a,b,c);
}
microtask(myTask,["hello","world","!"]);
//
doSomethingElse();
// ...after next event tick ... => "Hello world!"