Created
July 14, 2017 02:40
-
-
Save charpeni/f6e9936f3f12d8e8f2a2ebe3c413eeba to your computer and use it in GitHub Desktop.
ES8 Trailing commas in function parameter lists
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
function abc(a, b, c,) {} // <- OK | |
function abc( | |
a, | |
b, | |
c, // <- OK | |
) { | |
// some code | |
} | |
abc("","","",); // <- OK | |
abc( | |
"", | |
"", | |
"", // <- OK | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment