Skip to content

What Symbol and public get [symbol]()?

I’m reading some Typescript code and I have a hard time understanding a line. How does exactly get work? Is symbol an argument? Answer Symbol According to Developer Mozilla Every Symbol() call is guaranteed to return a unique Symbol. Every Symbol.for(“key”) call will always return the same S…