Open strager opened 3 months ago
For myArray[a:b], we can suggest writing myArray.slice(a, b-a) instead.
myArray[a:b]
myArray.slice(a, b-a)
Similarly, for myArray[a:], we can suggest writing myArray.slice(a).
myArray[a:]
myArray.slice(a)
Similarly, for myArray[:b], we can suggest writing myArray.slice(0, b).
myArray[:b]
myArray.slice(0, b)
@strager may I work on this?
For
myArray[a:b]
, we can suggest writingmyArray.slice(a, b-a)
instead.Similarly, for
myArray[a:]
, we can suggest writingmyArray.slice(a)
.Similarly, for
myArray[:b]
, we can suggest writingmyArray.slice(0, b)
.