Skip to content

Instantly share code, notes, and snippets.

@Keyamoon
Created November 20, 2015 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Keyamoon/e30b03aa5cf7c133d8fb to your computer and use it in GitHub Desktop.
Save Keyamoon/e30b03aa5cf7c133d8fb to your computer and use it in GitHub Desktop.
Arrow functions not recognized?
/*jslint es6 */
(function () {
'use strict';
let arr = [0, 1, 2, 3];
arr.forEach((a) => {
console.log(a);
});
}());
@Keyamoon
Copy link
Author

"JSLint requires the parens around the parameters, and forbids a { left brace after the => fart to avoid syntactic ambiguity."
From http://www.jslint.com/help.html#function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment