mishoo/UglifyJS — Issue #325: Change substring/substr to slice
Author: kbjr
Created: 2012-02-23 22:01:52+00:00
State: open

When only a single positive integer is given as an argument, ```string.substring```, ```string.substr```, and ```string.slice``` do the same thing and (at least as an unsafe transform) could be used interchangeably, so changing

```javascript
"abcd".substring(1);
```

to

```javascript
"abcd".slice(1);
```