ECMAScript 2015 Symbols Sharing

Описание к видео ECMAScript 2015 Symbols Sharing

The Symbol.for method receives one parameter of the type string. The string is the description of the symbol we want to use. Before the Symbol.for method creates a symbol value it checks wether that symbol already exists. If that symbol already exists this method returns it. If it doesn't then a new symbol is created and returned.

Комментарии

Информация по комментариям в разработке