Some quick notes on hand-converting from CoffeeScript to ES6/ECMAScript 2015 (e.g. for use with bablejs):
- add
'use strict';to beginning of file - add
letbefore new variable assignments, orconstif they are constant - add semicolons to end of statements (optional)
- add commas between elements of multi-line array literals
- add parenthesizes around function calls
- add braces around blocks
- replace
(args) =>with(args) => {arrow functions - replace
for x in awithfor (let x of a) {