Top "Ecmascript-harmony" questions

ECMAScript Harmony is the code name for proposals aiming to extend the current ECMA-262 specification.

How to convert Set to Array?

Set seems like a nice way to create Arrays with guaranteed unique elements, but it does not expose any good …

javascript arrays collections syntax ecmascript-harmony
How can I clone a JavaScript object except for one key?

I have a flat JS object: {a: 1, b: 2, c: 3, ..., z:26} I want to clone the object except for one element: {…

javascript ecmascript-6 ecmascript-harmony ecmascript-7
functional way to iterate over range (ES6/7)

What is the best way to do the below in more functional way (with ES6/ES7) let cols = []; for (let …

javascript functional-programming ecmascript-6 ecmascript-harmony
Is there a mechanism to loop x times in ES6 (ECMAScript 6) without mutable variables?

The typical way to loop x times in JavaScript is: for (var i = 0; i < x; i++) doStuff(i); But …

javascript generator ecmascript-6 ecmascript-harmony
When should I use Arrow functions in ECMAScript 6?

The question is directed at people who have thought about code style in the context of the upcoming ECMAScript 6 (Harmony) …

javascript lambda ecmascript-6 ecmascript-harmony arrow-functions
What is the motivation for bringing Symbols to ES6?

UPDATE: Recently a brilliant article from Mozilla came up. Read it if you're curious. As you may know they are …

javascript symbols ecmascript-harmony ecmascript-6
One-liner to take some properties from object in ES 6

How one can write a function, which takes only few attributes in most-compact way in ES6? I've came up with …

javascript ecmascript-6 ecmascript-harmony destructuring ecmascript-next
How to customize object equality for JavaScript Set

New ES 6 (Harmony) introduces new Set object. Identity algorithm used by Set is similar to === operator and so not much …

javascript set ecmascript-harmony
unexpected strict mode reserved word -- yield? Node v0.11, harmony, es6

Trying to use a new ES6 based node.js ODM for Mongo (Robe http://hiddentao.github.io/robe/) Getting "unexpected …

node.js ecmascript-6 ecmascript-harmony
Converting Singleton JS objects to use ES6 classes

I'm using ES6 with the Webpack es6-transpiler per my article here: http://www.railsonmaui.com/blog/2014/10/02/integrating-webpack-and-the-es6-transpiler-into-an-existing-rails-project/ Does …

javascript ecmascript-6 ecmascript-harmony