Skip to content

Instantly share code, notes, and snippets.

@entrptaher
Created April 25, 2017 01:22
Show Gist options
  • Save entrptaher/ad7cdd48f5190c905b254e8ad0b97209 to your computer and use it in GitHub Desktop.
Save entrptaher/ad7cdd48f5190c905b254e8ad0b97209 to your computer and use it in GitHub Desktop.
let runfunc = (actions) => {
let current = actions.shift()
current[0](current[1]).then((result) => {
console.log(result)
if (actions.length)
runfunc(actions)
})
}
module.exports = runfunc
{
"name": "pArguments",
"version": "1.0.0",
"main": "index.js",
"license": "MIT"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment