Skip to content

Commit bc52ed9

Browse files
committed
Update Range.js
1 parent 70826e6 commit bc52ed9

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/Range.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,9 @@ export class Range extends IndexedSeq {
4545
}
4646

4747
toString() {
48-
if (this.size === 0) {
49-
return 'Range []';
50-
}
51-
return (
52-
'Range [ ' +
53-
this._start +
54-
'...' +
55-
this._end +
56-
(this._step !== 1 ? ' by ' + this._step : '') +
57-
' ]'
58-
);
48+
return this.size === 0
49+
? 'Range []'
50+
: `Range [ ${this._start}...${this._end}${this._step !== 1 ? ' by ' + this._step : ''} ]`;
5951
}
6052

6153
get(index, notSetValue) {

0 commit comments

Comments
 (0)