Created
September 22, 2019 16:12
-
-
Save niktariy/7364dd58f3c8b83ad4cb30a1038d7460 to your computer and use it in GitHub Desktop.
Behavior of duplicate parameters in arrow functions
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
// Always throws a syntax error | |
const logParams = (first, second, first) => { | |
console.log(first, second); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment