---
title: "Discussion on \"ELI5 JavaScript: The Spread Operator\" | Hashnode"
description: "Discussion on \"ELI5 JavaScript: The Spread Operator\". The spread operator (...) introduced in JavaScript ES6 is used to 'unpack' elements of an iterable. Read the article to learn more about it!"
url: "https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c"
---

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

Discussion

# [ELI5 JavaScript: The Spread Operator](https://nisargkapkar.hashnode.dev/eli5-javascript-the-spread-operator?utm_source=hashnode&utm_medium=feed)

The spread operator (...) introduced in JavaScript ES6 is used to 'unpack' elements of an iterable. Read the article to learn more about it!

Oct 21, 2021 · 4 min read · nisargkapkar.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#es6](https://hashnode.com/tag/es6)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

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

@nisargkapkar · India

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

Twitter: @nnkkaapp | Software Engineering | Product Management

Eating JavaScript for breakfast. Building cool things on the web. Occasionally Blogging. Software Engineering | Product Management. "Ever tried. Ever failed. No matter. Try again. Fail again. Fail better"

## Responses 4

Markdown supported · ⌘↵ to post

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

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

[Oct 21, 2021](https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c/comment/6171916e0f452c1cd94f6dc7)

Good one, Nisarg. I am looking forward to the series.

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

[Oct 21, 2021](https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c/comment/6171916e0f452c1cd94f6dc7#reply-61719b3d0f452c1cd94f6edf)

Thank You, Tapas :)

[Sumudu Siriwardana](https://hashnode.com/@sumudusiriwardana)

[Oct 21, 2021](https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c/comment/61717f500c5e175a1c613009)

This is really good write-up! It was really easy to understand with your simple explanation! 😊

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

[Oct 21, 2021](https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c/comment/61717f500c5e175a1c613009#reply-61718da10f452c1cd94f6d71)

Thank you so much :)

[Sreekesh Iyer](https://hashnode.com/@sreekeshiyer)

[Oct 21, 2021](https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c/comment/61711c4d0f452c1cd94f609c)

Great thread, man! Very easy to understand :)

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

[Oct 21, 2021](https://hashnode.com/posts/eli5-javascript-the-spread-operator/617104350c5e175a1c61211c/comment/61711c4d0f452c1cd94f609c#reply-61712edc0c5e175a1c6125ea)

Thank You :)
