🐊Putout plugin adds ability to remove useless assign
npm install @putout/plugin-remove-useless-assign[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-assign.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-assign "npm"
> The Object.assign() method copies all enumerable own properties from one or more source objects to a target object. It returns the modified target object.
>
> (c) MDN
🐊Putout plugin adds ability to remove useless assign.
Check it out in 🐊Putout Editor.
```
npm i @putout/plugin-remove-useless-assign
`json`
{
"rules": {
"remove-useless-assign": "on"
}
}
`js`
const load = stub().rejects(assign(Error('LOAD USED')));
`js``
const load = stub().rejects(Error('LOAD USED'));
MIT