Created
November 20, 2015 13:04
-
-
Save Keyamoon/e30b03aa5cf7c133d8fb to your computer and use it in GitHub Desktop.
Arrow functions not recognized?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint es6 */ | |
(function () { | |
'use strict'; | |
let arr = [0, 1, 2, 3]; | |
arr.forEach((a) => { | |
console.log(a); | |
}); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"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