Skip to content

Commit

Permalink
Fix broken link to Array.at within Array.with (mdn#29201)
Browse files Browse the repository at this point in the history
Fix broken link to Array/at within Array/with
  • Loading branch information
dewdropawoo authored Sep 19, 2023
1 parent f0677cd commit d78e56f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ A new array with the element at `index` replaced with `value`.

The `with()` method changes the value of a given index in the array, returning a new array with the element at the given index replaced with the given value. The original array is not modified. This allows you to chain array methods while doing manipulations.

By combining `with()` with {{jsxref("Arra/at", "at()")}}, you can both write and read (respectively) an array using negative indices.
By combining `with()` with {{jsxref("Array/at", "at()")}}, you can both write and read (respectively) an array using negative indices.

The `with()` method never produces a [sparse array](/en-US/docs/Web/JavaScript/Guide/Indexed_collections#sparse_arrays). If the source array is sparse, the empty slots will be replaced with `undefined` in the new array.

Expand Down

0 comments on commit d78e56f

Please sign in to comment.