$ npm install @putout/plugin-remove-useless-typeof
The
typeofoperator returns a string indicating the type of the unevaluated operand.(c) MDN
🐊Putout plugin adds ability to apply shorthand properties. Merged to @putout/plugin-types.
npm i @putout/plugin-remove-useless-typeof
{
"rules": {
"remove-useless-typeof": "on"
}
}
typeof typeof 'hello';
typeof 'hello';
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE