Const
Global symbols factory registry with namespaces
import { Global } from '@biorate/symbolic';console.log(Global.Test); // Symbol(Global.Test)console.log(Global.Test === Global.Test); // true// namespace usageconsole.log(Global('Test').Test); // Symbol(Test.Test)console.log(Global('Test').Test === Global('Test').Test); // trueconsole.log(Global('Test1').Test); // Symbol(Test1.Test)console.log(Global('Test2').Test); // Symbol(Test2.Test)console.log(Global('Test1').Test === Global('Test2').Test); // false Copy
import { Global } from '@biorate/symbolic';console.log(Global.Test); // Symbol(Global.Test)console.log(Global.Test === Global.Test); // true// namespace usageconsole.log(Global('Test').Test); // Symbol(Test.Test)console.log(Global('Test').Test === Global('Test').Test); // trueconsole.log(Global('Test1').Test); // Symbol(Test1.Test)console.log(Global('Test2').Test); // Symbol(Test2.Test)console.log(Global('Test1').Test === Global('Test2').Test); // false
Generated using TypeDoc
Description
Global symbols factory registry with namespaces
Example