Combine consecutive assignments to the same value
Open
enhancement
Tag: New Feature
- Dominant language
- JavaScript
- Stars
- 4.4k
- Forks
- 217
- PR merge metrics
- No merged PRs in 30d
Description
```js
!function() {
this.foo = null;
this.bar = null;
this.baz = null;
}()
```
becomes:
```js
!function(){this.foo=null,this.bar=null,this.baz=null}();
```
but could be shortened to:
```js
!function(){this.foo=this.bar=this.baz=null}();
```
Contributor guide
Assessment
This issue has not been assessed yet.