Pattern: Explicit undefined
assignment
Issue: -
Variables, parameters, and return statements are undefined
by default, making explicit assignments of undefined
unnecessary and verbose.
Example of incorrect code:
let foo = undefined;
const bar = (x = undefined) => {};
return undefined;
Example of correct code:
let foo;
const bar = (x) => {};
return;