ECMAScript 6 reached feature complete status in 2014. The features vary widely from completely new objects and patterns to syntax changes to new methods on existing objects.

learn more… | top users | synonyms (1)

3
votes
0answers
24 views

Build a unique array of db fields

This is stripped down from a project I'm working on: ...
3
votes
0answers
48 views

String sequence in ES6

Given an unique string that represents a sequence of characters, the class should implement three methods (getNextChar, getNextString and the genSequence generator). How it works We give a sequence ...
5
votes
0answers
52 views

Processing files with streams

I'm using iojs. I have to read some files as a stream, process them with a same function and join them back into a stream. So, I decided to create my own solution with ...
6
votes
1answer
93 views

Generate probabilities around a numpad

Currently, I'm working on a game with directional movement influenced by the numpad. The player AI should intelligently pick a direction to move (so it's not entirely random, and can be somewhat ...
4
votes
1answer
84 views

Project Euler #55 - Lychrel numbers

If we take 47, reverse and add, 47 + 74 = 121, which is palindromic. Not all numbers produce palindromes so quickly. For example, 349 + 943 = 1292, 1292 + 2921 = 4213 4213 + 3124 = ...
4
votes
1answer
49 views

Class(es) for animating objects on a canvas

I'm building a simple canvas animation engine as an exercise in learning ES6. Coming from C++ and Java, I miss static properties, but I've read that "Prototypes having data properties is generally ...
8
votes
1answer
154 views

Hello, First Name Last Name

I've been working on learning React, and so like most people do when they get started on something new. I created an arbitrary simple project to get a bit more familiar with the concepts. It's so ...
2
votes
1answer
38 views

Dependency Injection with classes which are created often

I have a question about dependency injection and best practices when using simple classes which are meant to be created often, which have dependencies on external services. Here's a (vastly) ...
6
votes
1answer
90 views

ECMAScript text component

At the moment, I'm learning ES6 and how to write classes, and I'd like to know if I'm doing things right and I have some points that are not clear to me. Please find my code here at bitbucket and ...
10
votes
1answer
97 views

Hunt the wumpus: Functional JavaScript (Node) with Lodash

I'd like a code review of the following simple implementation of the classic game Hunt the Wumpus I'm trying to use JavaScript in the most "functional" way. To help me, I'm using lodash and ES6. ...
4
votes
1answer
73 views

Salsa20 stream cipher

I have been implementing Salsa20 by studying the design and specification. I have made sure to unit test every function along the way and match the outputs against the test vectors in the spec. I am ...
1
vote
0answers
20 views

99 bottles of beer on the wall + EcmaScript 6

Today, a solution written in Python was posted to this challenge, and since I was inspired by it, I made a version in EcmaScript 6. I tried to explore some new language constructs: arrow functions ...
1
vote
1answer
47 views

Get friend lists

I've never written on VKScript (and on Javascript). I need high performance code to get more friend lists faster. ...
1
vote
1answer
379 views

ES6 classes and ReactJS: implementing propTypes

I had a problem to define propTypes for my React class. I ran into solution that doesn't feel right: ...
3
votes
1answer
232 views

Toggling element class according checked radio input V2.0

This question is about an improvement of the code from this previous question (previous changed visibility, new applies a CSS class with a border). It is a constructor function that attaches a click ...
11
votes
2answers
300 views

Javascript/ECMAscript 6 classes organization

So I have been trying to wrap my head around all the new options in ECMAscript 6 and to do this I tried to develop a simple setup which would allow me to place absolutely positioned ...