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

Ecmascript Proposal For Constructor Parameter Properties

In TypeScript, there is convenient syntax, constructor parameter properties: constructor(a, public … Read more Ecmascript Proposal For Constructor Parameter Properties

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?

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

Why Can't String.raw End With A Backslash?

String.raw can be used to create a string that contains backslashes, without having to double up th… Read more Why Can't String.raw End With A Backslash?