Top "Ecmascript-2017" questions

Use this tag for questions about features finalized in ECMAScript 2017.

async/await and recursion

I'm trying to code a method that show recursively an ActionSheetIOS to select a value contained from arrays and return …

javascript react-native ecmascript-2017
Chain async functions

In an async function, I can get an asynchronous value like so: const foo = await myAsyncFunction() If I want to …

javascript async-await ecmascript-2017
async function with the class in javascript

I have create a class in nodejs class ApnService { sendNotification(deviceType, deviceToken, msg, type, id) { try { const note = await apnProvider.…

javascript node.js asynchronous async-await ecmascript-2017
Why `async/await` doesn't work in my case?

I read about async/await, but I've a critical question. At first I explain an old example to show base …

javascript asynchronous async-await ecmascript-2017
JS: Handle with find() property undefined

I have a method which returns a value from an element in the array. Not all the elements have the …

javascript typescript find ecmascript-2017
Get firebase.auth().currentUser with async/await

I successfully check user's authentication state with onAuthStateChange observer and redirect user to the Dashboard page (react-native project). However, on …

javascript firebase react-native firebase-realtime-database ecmascript-2017
Using await in then callback - the keyword 'await' is reserved

In node.js, I have a database transaction, where I want to call an async method in then callback, but …

javascript node.js async-await ecmascript-2017
Async / await assignment to object keys: is it concurrent?

I know that doing this: const resultA = await a() const resultB = await b() // code here Is effectively a().then( resultA =&…

javascript async-await es6-promise ecmascript-2017
How do I target ES2018 in TypeScript?

I am targeting ES2018 and do not care about ES3 or ES5. From my tsconfig.json: "target": "ES2018". tsc complains: …

javascript typescript ecmascript-2017
ES7, ES8, ES9, ES10 Browser support

It is fairly easy to check out the data about browser support for ECMAScript2015 (ES6), but I found it pretty …

javascript ecmascript-7 ecmascript-2017