1.0.1 β€’ Published 2 years ago

@putout/plugin-remove-useless-typeof v1.0.1

Weekly downloads
2,380
License
MIT
Repository
github
Last release
2 years ago

@putout/plugin-remove-useless-typeof NPM version

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