accounts-frontend/scripts/test-async-await.js
2017-01-14 21:38:38 +02:00

14 lines
233 B
JavaScript

const test = async () => {
};
const obj = {a: 1, b: 1};
const {a, b} = obj;
console.log(a, b, 'ok');
// how to:
// cd to frontend
// > ./node_modules/.bin/babel-node --presets es2015,es2017,stage-0 ./scripts/test-async-await.js