What is the primitive type Symbol is? I don't really understand it, as it seems not intuitive. I know about string, number and boolean primitive types yet Symbol seem to be alien. We can even pass in a string to a Symbol, which is weird as I don't see any other primitives that can do that.
Moreover, I can see the use cases with other primitives, like number can do arithmatic operations and so on. Its not clear what Symbol has of use case.
function printPerson(a: number, b: string) {
...
}
Lastly, we can also use other primitives easily in other data structures:
let arr = [1,2,3]
let obj = { name: 'Peter', age: 30 }
But how do we use Symbol? :D