1.0.1 β’ Published 2 years ago
@putout/plugin-remove-useless-typeof v1.0.1
@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