Sentence improvement
This commit is contained in:
parent
e62dfd5254
commit
0d9eea6fa1
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ The syntax is:
|
|||
arr.slice(start, end)
|
||||
```
|
||||
|
||||
It returns a new array where it copies all items start index `"start"` to `"end"` (not including `"end"`). Both `start` and `end` can be negative, in that case position from array end is assumed.
|
||||
It returns a new array containing all items from index `"start"` to `"end"` (not including `"end"`). Both `start` and `end` can be negative, in that case position from array end is assumed.
|
||||
|
||||
It works like `str.slice`, but makes subarrays instead of substrings.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue