@putout/plugin-remove-useless-typeof
putout plugin adds ability to remove useless typeof
Last updated 6 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-remove-useless-typeof 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 1.0.1                                ...           latest (3 years ago)

2 Versions

  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |