$ npm install @putout/plugin-simplify-assignment
🐊Putout plugin adds ability to simplify assignment
.
npm i @putout/plugin-simplify-assignment -D
{
"rules": {
"simplify-assignment": "on"
}
}
const {a} = {
a: 5,
};
const [b] = [5];
const c = (() => 7)();
const a = 5;
const b = 5;
const c = 7;
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE