Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ecmascript Next

Why Do Javascript Functions Need To Have The Keyword "async"? Isn't The "await" Keyword Enough?

For instance, why does the function below need to have 'async'? Isn't using await speci… Read more Why Do Javascript Functions Need To Have The Keyword "async"? Isn't The "await" Keyword Enough?

Difference Between Finally() And Then() In Es2018

Before ES2018, I used to nest an extra then at the end of the promise chain whenever I had to perfo… Read more Difference Between Finally() And Then() In Es2018

Babel - Decorator Of Decorated Class Properties Is Called Before Instantiating Class

Excuse me for creating a new question, I was not able to find a question addressing this matter. I… Read more Babel - Decorator Of Decorated Class Properties Is Called Before Instantiating Class

Object Destructuring ({ X, Y, ...rest }) For Whitelisting Properties Of An Object

Using Object rest destructuring is straightforward to blacklist properties of an object, like in th… Read more Object Destructuring ({ X, Y, ...rest }) For Whitelisting Properties Of An Object

How To Use Arrow Functions (public Class Fields) As Class Methods?

I'm new to using ES6 classes with React, previously I've been binding my methods to the cur… Read more How To Use Arrow Functions (public Class Fields) As Class Methods?

How To Use The Proposed Ecmascript Class Syntax With React And Webpack?

I am trying to learn the proposed class syntax for ecmascript and using it with React, i have succe… Read more How To Use The Proposed Ecmascript Class Syntax With React And Webpack?

Why Does Assignment Using Await Within While Expression Not Retain Assigned Value?

Given the JavaScript code the expected result of done returned from fn() is true when done is assi… Read more Why Does Assignment Using Await Within While Expression Not Retain Assigned Value?