@putout/plugin-remove-useless-typeof
v1.0.1
Published
šPutout plugin adds ability to remove useless typeof
Downloads
40,044
Maintainers
Readme
@putout/plugin-remove-useless-typeof
The
typeof
operator 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
.
Install
npm i @putout/plugin-remove-useless-typeof
Rule
{
"rules": {
"remove-useless-typeof": "on"
}
}
ā Example of incorrect code
typeof typeof 'hello';
ā Example of correct code
typeof 'hello';
License
MIT