JavaScript Symbols MasterClass // The Missing Guide

preview_player
Показать описание
Smash that 👍 and 🔔
Share to spread the love 🤗

Chapters
0:00 Symbol Fundamentals
1:05 Symbol as Object Key
2:06 Not Enumerable
3:08 Safe Extension Of Objects
4:14 Well Known Symbols
6:03 Symbol Sharing

🚉 Join the Platform

💬 Discord

👇 Subscribe for MOORE

🌹 Support High Effort - Well Researched - Quality Content

~
Рекомендации по теме
Комментарии
Автор

I almost went crazy trying to understand this concept. Thanks man!

victoryamadi
Автор

Rarely usefull but still very interesting to know, thank you!

VforVanish
Автор

I've been following Basarat for some years now, let me tell you about this guy, sometimes he decides to just DROP KNOWLEDGE, this is one of those cases!

beriu
Автор

Hey basarath I have one doubt why we call symbol refrence though it's a primitive type

nisabmohd
Автор

A symbolic episode indeed. Thank you, basarat, for demystifying Symbols

There are many system symbols used by JavaScript that are accessible as Symbol.*. We can use them to alter some built-in behaviors. For instance, we can use Symbol.iterator for iterables, Symbol.toPrimitive to set up object-to-primitive conversion like when you do Obj1 + Obj2 or Obj1-Obj2.

marslogics