Top "Ecmascript-next" questions

For questions about upcoming ECMAScript features that are not scheduled to be part of a specific version yet (anything that is a stage 3 or lower proposal).

Difference between async/await and ES6 yield with generators

I was just reading this fantastic article «Generators» and it clearly highlights this function, which is a helper function for …

javascript node.js ecmascript-6 generator ecmascript-next
TypeError: Object.entries is not a function

Why do I keep getting this error when trying to run my Node.js/Express server? Is this a part …

javascript node.js express ecmascript-next
JavaScript double colon (bind operator)

As you know, there is a proposal for a shortcut for .bind() function, so you can write: ::this.handleStuff and …

javascript ecmascript-harmony ecmascript-next
While loops using Await Async.

This Javascript function seems to use the while loop in an asynchronous way. Is it the correct way to use …

loops asynchronous while-loop async-await ecmascript-next
How to know if a function is async?

I have to pass a function to another function, and execute it as a callback. The problem is that sometimes …

javascript node.js async-await ecmascript-next
Is it OK to put propTypes and defaultProps as static props inside React class?

This is the way I've been doing it for quite some time now: export default class AttachmentCreator extends Component { render() { …

class reactjs ecmascript-next
Unable to use Arrow functions inside React component class

I've started a project where I use React JS for the front end an node js in backend. I used …

javascript reactjs ecmascript-6 babeljs ecmascript-next
Babel support for Object.entries

I'm looking at the stage 3 proposal of Object.values/Object.entries and I'd really like to use it in my …

javascript babeljs ecmascript-next
How do I await a list of Promises in JavaScript/TypeScript?

I have following code, fileStatsPromises is of Promise<Stats>[], both foo and bar are Promise<Stats>[]. …

javascript typescript async-await ecmascript-next
Transpile Async Await proposal with Babel.js?

There is a proposal for introducing C# style async-await. I know Babel.js transpiles ES6 to ES5, but is there …

javascript async-await babeljs ecmascript-next