Skip to content

Instantly share code, notes, and snippets.

@ajcrites
Last active March 1, 2017 01:28
Show Gist options
  • Select an option

  • Save ajcrites/3295220ea563fd0768d19b7ccc2f886d to your computer and use it in GitHub Desktop.

Select an option

Save ajcrites/3295220ea563fd0768d19b7ccc2f886d to your computer and use it in GitHub Desktop.
const fo = async ({stuff, userId}) => {
await new Promise(resolve => {
setTimeout(() => resolve(), 500);
});
console.log(stuff, userId);
};
fo({stuff: "a", userId: "b"});
{
"babel": {
"env": {
"development": {
"presets": [
["env",
{
"targets": {
"node": 4.3
}
}]
]
}
}
},
"scripts": {
"start": "babel-node ."
},
"dependencies": {
"babel-cli": "^6.23.0",
"babel-preset-env": "^1.1.10"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment