---
title: "Comment by Vaibhav Rai on \"ELI5 JavaScript: The Spread Operator\" | Hashnode"
description: "🙌 To the point, if possible can you add a small reference on how to find whether some object is iterable or not, it will easier to relate why cases like these"
url: "https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c/comment/61742ff90c5e175a1c6166bd"
---

[Discussion](https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c)

Comment [ELI5 JavaScript: The Spread Operator](https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c)

[Vaibhav Rai](https://hashnode.com/@raivaibhav)

[Oct 23, 2021](https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c/comment/61742ff90c5e175a1c6166bd)

🙌 To the point, if possible can you add a small reference on how to find whether some object is iterable or not, it will easier to relate why cases like these won't work;

```
const one = {1: 1, 2: 2};
const b = [...one]
```

[Nisarg Kapkar](https://hashnode.com/@nisargkapkar)

[Nov 1, 2021](https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c/comment/61742ff90c5e175a1c6166bd#reply-617fbf24f597ba4a82795b65)

Got it! Thanks for the feedback & suggestion :)
