Skip to content

Commit d8f8d11

Browse files
committed
🐛 docs: about -ve index issue
1 parent cae2455 commit d8f8d11

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ from the [jsDelivr CDN].
4242

4343
> Stability: [Experimental](https://www.youtube.com/watch?v=L1j93RnIxEo).
4444
45+
> NOTE: The use of negative indices in certain functions such as `slice()` is
46+
> provided as a convenience for access elements from the end of the array.
47+
> However, negative indices can be thought of as referring to a virtual mirrored
48+
> version of the original array, which can be counter-intuitive and make it
49+
> harder to reason about the behavior of functions that use them. We are working
50+
> on a solution to this problem. Any suggestions are welcome.
51+
4552
[array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
4653
[jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-array.web/index.js
4754

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "extra-array",
3-
"version": "4.1.12",
3+
"version": "4.1.13",
44
"description": "An array is a collection of values, stored contiguously.",
55
"main": "index.js",
66
"module": "index.mjs",

0 commit comments

Comments
 (0)