$ cnpm 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
Copyright 2013 - present © cnpmjs.org | Home |