6.9.4 • Published 6 years ago

babel-plugin-transform-simplify-comparison-operators v6.9.4

Weekly downloads
2,180,011
License
MIT
Repository
github
Last release
6 years ago

babel-plugin-transform-simplify-comparison-operators

Convert === and !== to == and != if their types are inferred to be the same.

Example

In

typeof foo === "object";

Out

typeof foo == "object";

Installation

npm install babel-plugin-transform-simplify-comparison-operators

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-simplify-comparison-operators"]
}

Via CLI

babel --plugins transform-simplify-comparison-operators script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-simplify-comparison-operators"]
});
6.10.0-alpha.9

6 years ago

6.9.4

6 years ago

6.9.3

6 years ago

6.9.2

6 years ago

6.9.1

6 years ago

6.9.0

6 years ago

6.8.5

7 years ago

6.8.4

7 years ago

6.8.3

7 years ago

6.8.2

7 years ago

6.8.1

7 years ago

0.0.3

7 years ago

0.0.1

8 years ago

6.8.0

8 years ago

6.5.0-1

8 years ago

6.5.0

8 years ago

6.3.13

8 years ago

6.2.4

8 years ago

6.1.18

8 years ago

6.1.17

8 years ago

6.1.4

8 years ago

6.0.17

8 years ago

6.0.14

8 years ago

6.0.2

9 years ago