1.0.1 β’ Published 3 years ago
@putout/plugin-remove-useless-typeof v1.0.1
@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.
Install
npm i @putout/plugin-remove-useless-typeofRule
{
"rules": {
"remove-useless-typeof": "on"
}
}β Example of incorrect code
typeof typeof 'hello';β Example of correct code
typeof 'hello';License
MIT