The
returnstatement ends function execution and specifies a value to be returned to the function caller.(c) MDN
🐊Putout plugin adds ability to find and remove useless return.
npm i @putout/plugin-remove-useless-return
{
"rules": {
"remove-useless-return": "on"
}
}const traverse = ({push}) => {
return {
ObjectExpression(path) {
},
};
};const traverse = ({push}) => ({
ObjectExpression(path) {
},
});MIT