You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can support global registried symbol and well-known symbol.
this means stringifyObject(Symbol.for('sym')) can output Symbol.for('sym'),
and stringifyObject(Symbol.iterator) output Symbol.iterator.
I am not sure whether to support other symbols, because their stringified literal values will never equal,
but they may be same symbols before stringified.
Currently we can support symbol as object value or array item with a transform callback, but not the object key.
following is my transform code:
We can support global registried symbol and well-known symbol.
this means
stringifyObject(Symbol.for('sym'))
can outputSymbol.for('sym')
,and
stringifyObject(Symbol.iterator)
outputSymbol.iterator
.I am not sure whether to support other symbols, because their stringified literal values will never equal,
but they may be same symbols before stringified.
Currently we can support symbol as object value or array item with a transform callback, but not the object key.
following is my transform code:
The text was updated successfully, but these errors were encountered: