Created
March 23, 2013 07:55
-
-
Save aaronfrost/5226912 to your computer and use it in GitHub Desktop.
Arrow Function - 11 - No parenthesis
This file contains hidden or 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
//NONE | |
let add = () => 0 + 0; //0 params, parens required | |
//ONE PARAM | |
let add = x => x + x; //1 param, parens options | |
let add = (x) => x + x; | |
//MULTI PARAMS | |
let add = (x, y) => x + y; //multi params, parens required | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment