you jest, but using the actual function keyword had to be made a point in my team’s code style ruleset because people kept using the constsomethingFunction = ( input ) => { return input*2; };
syntax everywhere. (as opposed to: functionsomethingFunction( input ) { returninput*2; })
you jest, but using the actual function keyword had to be made a point in my team’s code style ruleset because people kept using the
const somethingFunction = ( input ) => { return input*2; };syntax everywhere. (as opposed to:
function somethingFunction ( input ) { return input*2; })Thats interesting, assuming this is JS, we went the other way and prefer arrow functions.