@putout/plugin-remove-useless-typeof

1.0.1 • Public • Published

@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

Package Sidebar

Install

npm i @putout/plugin-remove-useless-typeof

Weekly Downloads

12,428

Version

1.0.1

License

MIT

Unpacked Size

3.51 kB

Total Files

4

Last publish

Collaborators

  • coderaiser