Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (35 sloc) 759 Bytes
id title sidebar_label
babel-plugin-transform-simplify-comparison-operators
babel-plugin-transform-simplify-comparison-operators
transform-simplify-comparison-operators

Example

In

typeof foo === "object";

Out

typeof foo == "object";

Installation

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

Usage

With a configuration file (Recommended)

{
  "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"]
});
You can’t perform that action at this time.