# Diving Into Sets

**URL:** https://forum.kirupa.com/t/diving-into-sets/641031
**Category:** programming
**Created:** [November 8, 2019, 11:52pm UTC](https://forum.kirupa.com/t/diving-into-sets/641031 "2019-11-08T23:52:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [November 8, 2019, 11:52pm UTC](https://forum.kirupa.com/t/diving-into-sets/641031/1 "2019-11-08T23:52:58Z")

</div>

When it comes to storing a collection of data, arrays probably come to mind first. They’ve been around forever, are very flexible, and contain a boatload of properties that make using them a breeze. Over the past few years, JavaScript gained another way to store a collection of data. That way is via this mysterious array-looking creature known as a **Set**. On the surface, arrays and sets look similar:

* * *
This is a companion discussion topic for the original entry at [https://www.kirupa.com/javascript/sets.htm](https://www.kirupa.com/javascript/sets.htm)

---

<div class="post-metadata">

### Author: ![REB\_412](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/reb_412/32/9233_2.png) [@REB\_412](https://forum.kirupa.com/u/REB_412)
#### Post date: [November 9, 2019, 12:24am UTC](https://forum.kirupa.com/t/diving-into-sets/641031/2 "2019-11-09T00:24:33Z")

</div>

The referenced article is a nice summary of the new ES6 feature Sets.

---

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [November 9, 2019, 4:40am UTC](https://forum.kirupa.com/t/diving-into-sets/641031/3 "2019-11-09T04:40:27Z")

</div>

Glad you liked it 🙂
