---
title: "Comment by David Williford on \"Why the with() method of JavaScript Array is a gem?\" | Hashnode"
description: "I like how it allows you to use negative indexes. I'm surprised this is not already a feature in javascript."
url: "https://hashnode.com/posts/javascript-array-method-with-immutability/668bd00b1c0dd730ebc759cd/comment/66b60c1acf25bdc1e7438d92"
---

[Discussion](https://hashnode.com/posts/javascript-array-method-with-immutability/668bd00b1c0dd730ebc759cd)

Comment [Why the with() method of JavaScript Array is a gem?](https://hashnode.com/posts/javascript-array-method-with-immutability/668bd00b1c0dd730ebc759cd)

[David Williford](https://hashnode.com/@DavidWilliford)

[Aug 9, 2024](https://hashnode.com/posts/javascript-array-method-with-immutability/668bd00b1c0dd730ebc759cd/comment/66b60c1acf25bdc1e7438d92)

I like how it allows you to use negative indexes. I'm surprised this is not already a feature in javascript.

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 9, 2024](https://hashnode.com/posts/javascript-array-method-with-immutability/668bd00b1c0dd730ebc759cd/comment/66b60c1acf25bdc1e7438d92#reply-66b60d22e3d019c779041add)

Thank you [David Williford](https://hashnode.com/@DavidWilliford)
