Open
Description
This method should works as same as js.Value.Set
, but it uses Symbol
as the key.
It's useful because we can use more js syntax sugar with symbols, such as for ... of
, and we don't have to write extra javascripts to wrap them.
A suggestion signature:
func (js.Value)SetSymbol(symbol js.Value, value any)
Metadata
Metadata
Assignees
Type
Projects
Status
Incoming