No need for parens for single-argument arrow functions.
Put 'use strict' at the top (although this will be unnecessary once you move to modules).
Use .js instead of .es6.
In addition I just want to strongly second the use of shorthand object literals recommended in #3. After the var/let usage, that was the biggest thing that stood out to me.
In addition to #3:
const
, lesslet
, and never usevar
in ES6.'use strict'
at the top (although this will be unnecessary once you move to modules)..js
instead of.es6
.In addition I just want to strongly second the use of shorthand object literals recommended in #3. After the
var
/let
usage, that was the biggest thing that stood out to me.