Javascript Symbols Explained
A Symbol is a new primitive type introduced in ES6. At first glance, it may seem like a symbol is just a unique string. However, there are some important differences between symbols and strings. In this post, we’ll look at what symbols are, learn about their features and discuss some use cases for them. Symbols as Unique identifiers To start off, let’s look at how things were before Symbols were introduced....