6.9.4 • Published 7 years ago

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

Weekly downloads
2,180,011
License
MIT
Repository
github
Last release
7 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

7 years ago

6.9.4

7 years ago

6.9.3

7 years ago

6.9.2

7 years ago

6.9.1

7 years ago

6.9.0

7 years ago

6.8.5

8 years ago

6.8.4

8 years ago

6.8.3

8 years ago

6.8.2

8 years ago

6.8.1

8 years ago

0.0.3

9 years ago

0.0.1

9 years ago

6.8.0

9 years ago

6.5.0-1

9 years ago

6.5.0

9 years ago

6.3.13

10 years ago

6.2.4

10 years ago

6.1.18

10 years ago

6.1.17

10 years ago

6.1.4

10 years ago

6.0.17

10 years ago

6.0.14

10 years ago

6.0.2

10 years ago