From bc52ed97d60d16d717371832b814a72b397cc40c Mon Sep 17 00:00:00 2001 From: "Ustin.Vaskin" <51622314+ustinvaskin@users.noreply.github.com> Date: Tue, 25 Mar 2025 10:26:27 +0100 Subject: [PATCH] Update Range.js --- src/Range.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/Range.js b/src/Range.js index 28ddd08bcc..a7ac912aed 100644 --- a/src/Range.js +++ b/src/Range.js @@ -45,17 +45,9 @@ export class Range extends IndexedSeq { } toString() { - if (this.size === 0) { - return 'Range []'; - } - return ( - 'Range [ ' + - this._start + - '...' + - this._end + - (this._step !== 1 ? ' by ' + this._step : '') + - ' ]' - ); + return this.size === 0 + ? 'Range []' + : `Range [ ${this._start}...${this._end}${this._step !== 1 ? ' by ' + this._step : ''} ]`; } get(index, notSetValue) {