Top "Ecmascript-6" questions

The 2015 version of the ECMAScript specification, now a standard (ECMAScript 2015).

Simplest way to merge ES6 Maps/Sets?

Is there a simple way to merge ES6 Maps together (like Object.assign)? And while we're at it, what about …

javascript set ecmascript-6
Should I use typescript? or I can just use ES6?

My daily job is client developer using AngularJS. We are evaluating if we want to go with TypeScript. I did …

angularjs typescript ecmascript-6
`export const` vs. `export default` in ES6

I am trying to determine if there is any big differences between these two, other than being able to import …

javascript ecmascript-6 es6-modules
How to generate range of numbers from 0 to n in ES2015 only?

I have always found the range function missing from JavaScript as it is available in python and others? Is there …

javascript arrays ecmascript-6
Merge two objects with ES6

I'm sure this question has been asked before but I can't quite find the answer I'm looking for, so here …

javascript ecmascript-6
Map vs Object in JavaScript

I just discovered chromestatus.com and, after losing several hours of my day, found this feature entry: Map: Map objects …

javascript dictionary ecmascript-6
ES6 Class Multiple inheritance

I've done most of my research on this on BabelJS and on MDN (which has no information at all), but …

javascript ecmascript-6
Home does not contain an export named Home

I was working with create-react-app and came across this issue where I get Home does not contain an export named …

javascript reactjs ecmascript-6 create-react-app
How do I fix "Expected to return a value at the end of arrow function" warning?

Everything works fine, but I have this warning Expected to return a value at the end of arrow function array-callback-return. …

javascript reactjs ecmascript-6 redux react-redux
Call static methods from regular ES6 class methods

What's the standard way to call static methods? I can think of using constructor or using the name of the …

javascript class static ecmascript-6 es6-class