Returns the name of the enumerator member.
This function does not generate a change.
member.name()
None
Returns the name of the enumerator member.
This code creates a closure with a doc string:
set_enum("Color", {
RED: '#f00'
});
// Return the name of Color{RED}
Color{RED}.name();
Return value in JSON format
"RED"