$ cnpm install @putout/plugin-convert-equal-to-strict-equal
The strict equality operator (
===) checks whether its two operands are equal, returning aBooleanresult. Unlike the equality operator (==), the strict equality operator always considers operands of different types to be different.(c) MDN
????Putout plugin adds ability to convert equal to strict equal operator. Merged to @putout/plugin-conditions.
npm i @putout/plugin-convert-equal-to-strict-equal -D
{
"rules": {
"convert-equal-to-strict-equal": "off"
}
}
if (a == b) {
}
if (a === b) {
}
MIT
Copyright 2013 - present © cnpmjs.org | Home |