---
title: "Comment by Sherif Jimoh on \"Why the with() method of JavaScript Array is a gem?\" | Hashnode"
description: "nice piece mate, ty for this. i&#39;ve always been using map method in scenarios where i prioritizes immutability with some little logic. thanks once again."
url: "https://hashnode.com/posts/javascript-array-method-with-immutability/668bd00b1c0dd730ebc759cd/comment/6690f1e25b543a5085efbaa8"
---

[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)

[Sherif Jimoh](https://hashnode.com/@Shefco)

[Jul 12, 2024](https://hashnode.com/posts/javascript-array-method-with-immutability/668bd00b1c0dd730ebc759cd/comment/6690f1e25b543a5085efbaa8)

nice piece mate, ty for this. i've always been using map method in scenarios where i prioritizes immutability with some little logic. thanks once again.

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

[Jul 12, 2024](https://hashnode.com/posts/javascript-array-method-with-immutability/668bd00b1c0dd730ebc759cd/comment/6690f1e25b543a5085efbaa8#reply-6690fc1cd8a40152818c1718)

My pleasure 🤩
