---
title: "Discussion on \"Proxy cool array methods\" | Hashnode"
description: "Discussion on \"Proxy cool array methods\". Re implement cool array methods with js proxy"
url: "https://hashnode.com/posts/proxy-cool-array-methods/626e5e05d02237eb3fc7c0cb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Proxy cool array methods](https://amirhe.hashnode.dev/proxy-cool-array-methods?utm_source=hashnode&utm_medium=feed)

Re implement cool array methods with js proxy

May 1, 2022 · 2 min read · amirhe.hashnode.dev  
Updated May 2, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#proxy](https://hashnode.com/tag/proxy)
-   [#es6](https://hashnode.com/tag/es6)

## Written by

[Amir Hossein Ebrahimi](https://hashnode.com/@amirhe)

@amirhe · Tehran, Iran

  
[View profile](https://hashnode.com/@amirhe)

CS PhD • AI Architect • Frontend Captain • Tutor

⚡ If premature optimization is the root of all evil, Then I have an evil factory. 💬 If you are searching for new idea, there you are. ⚡ I explain things in a complex and precise manner from the beginning. 🚒 Kryptonite and misconceptions about other's profession are two of my main weaknesses. 🎨 I occasionally draw somethings.

## Responses 1

Markdown supported · ⌘↵ to post

[Masoud Salehi](https://hashnode.com/@masoudmsk)

[May 2, 2022](https://hashnode.com/posts/proxy-cool-array-methods/626e5e05d02237eb3fc7c0cb/comment/626faf4777f8e2f7fe9348a7)

Cooooool!

But in the last code snippet:

-   You're printing array keys. Must use `for of` instead of `for in`.
-   And the python version doesn't include `stop` in the output of `range(stop)`. 😜

[Amir Hossein Ebrahimi](https://hashnode.com/@amirhe)

[May 2, 2022](https://hashnode.com/posts/proxy-cool-array-methods/626e5e05d02237eb3fc7c0cb/comment/626faf4777f8e2f7fe9348a7#reply-626fbd3677f8e2f7fe934a9a)

Thank you so much, [Masoud Salehi](https://hashnode.com/@masoudmsk)

-   Because the output of the first one was so similar, I simply missed the differences.
-   I also corrected the output once you pointed out the python exclusion :)
