3 ms·
const identity = function (value) { return value; }; This change is really confusing to me. I've never seen anyone who puts a space after the `function`
by ng12 7y ago
const identity = function (value) {
return value;
};
This change is really confusing to me. I've never seen anyone who puts a space after the `function` keyword in an anonymous function.
- capableweb 7y agoNot sure how much open source you've done, but StandardJS is used in a lot of open source JS libraries/projects, and they have the "Add a space after keywords" and "Add a space before a function declaration's parentheses" rules in it, so plenty of open source projects does it like this.