Open xamgore opened 4 years ago
Sure @xamgore. Why not? Could be a useful addition for some use cases. This could be done in a similar fashion than nodejs custom inspection symbol here to ensure that it does not break usage with older runtimes. You need to check that Symbol do exist and that this particular symbol also exists before setting it to the required prototypes. Do you want to open a PR to add this to structures that are useful to you?
According to the latest spec and typescript definitions, standard Map interface implements
Symbol.toStringTag
property.Maybe
DefaultMap
and other data structures in mnemonist should do the same?