Skip to content

Instantly share code, notes, and snippets.

@niktariy
Created September 22, 2019 16:12
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 niktariy/7364dd58f3c8b83ad4cb30a1038d7460 to your computer and use it in GitHub Desktop.
Save niktariy/7364dd58f3c8b83ad4cb30a1038d7460 to your computer and use it in GitHub Desktop.
Behavior of duplicate parameters in arrow functions
// 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