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
let
before new variable assignments, orconst
if 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 a
withfor (let x of a) {