I would like to create a private custom event, an event nobody else can dispatch or listen. I tried this, but it does not work:
new CustomEvent(Symbol("validate"));
Is it possible?
I know I can do something like this:
new CustomEvent(crypto.randomUUID());
2
Answers
This seems to be the maximum, which can be achieved.
From some of the OP’s and my comments …