Sentence improvement

This commit is contained in:
Mojtaba Javan 2018-12-27 05:22:33 +03:30 committed by GitHub
parent e62dfd5254
commit 0d9eea6fa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.