This module provides a function to create unique symbols in a more flexible way.
importsymbolGeneratorfrom'core/symbol';
// All symbols that produce from this constant will be automatically generated by the first touch. // This mechanism is based on the JS Proxy API. const $$ = symbolGenerator();
// This code is similar to // const hi = Symbol('hi'); // console.log(hi); console.log($$.hi);
core/symbol
This module provides a function to create unique symbols in a more flexible way.