Introduction
If there is only one parameter name, parentheses can be omitted around the parameter list. Same for the function body and brackets
When an arrow function has no parameters at all, its parameter is just an empty set of parentheses
Oct 06, 20201 min read
If there is only one parameter name, parentheses can be omitted around the parameter list. Same for the function body and brackets
When an arrow function has no parameters at all, its parameter is just an empty set of parentheses