This commit is contained in:
joaquinelio 2022-05-13 18:05:24 -03:00 committed by GitHub
parent 2901e0c645
commit fb313612a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -530,7 +530,7 @@ The call to `new Array(number)` creates an array with the given length, but with
Getting the elements:
- we can get element by its index, like `arr[0]`
- also we can use `at(i)` method to get negative-index elements, for negative values of `i`, it steps back from the end of the array. In the rest it works same as `arr[i]`, if `i >= 0`.
- also we can use `at(i)` method that allows negative indexes. For negative values of `i`, it steps back from the end of the array. If `i >= 0`, it works same as `arr[i]`.
We can use an array as a deque with the following operations: