The third parameter sent to the callback for most of these functions is still a reference to the original array, not a copy. This means that while, during the callback, it is possible to mutate the original through array functions or assigning values.
Yes, Richard, it does, but that is an optional callback passed by the developer and not a spec requirement. And one more important thing, using this callback might cause the unknown side-effects while mutating the original array.
But thanks for pointing, I have made some changes not to confuse readers.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The third parameter sent to the callback for most of these functions is still a reference to the original array, not a copy. This means that while, during the callback, it is possible to mutate the original through array functions or assigning values.
Yes, Richard, it does, but that is an optional callback passed by the developer and not a spec requirement. And one more important thing, using this callback might cause the unknown side-effects while mutating the original array.
But thanks for pointing, I have made some changes not to confuse readers.