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
"An object property name can be any valid JavaScript string, or anything that can be converted to a string, including the empty string. However, any property name that is not a valid JavaScript identifier (for example, a property name that has a space or a hyphen, or that starts with a number) can only be accessed using the square bracket notation."
Currently if we do something like map_to_object(%{1=> :fail, :atom=> :fail}), we will produce an object like this, but in many cases we want a valid javascript object that will transform numbers and atoms to strings. Perhaps add a map_to_object/2 ?
The text was updated successfully, but these errors were encountered:
"An object property name can be any valid JavaScript string, or anything that can be converted to a string, including the empty string. However, any property name that is not a valid JavaScript identifier (for example, a property name that has a space or a hyphen, or that starts with a number) can only be accessed using the square bracket notation."
Currently if we do something like map_to_object(%{1=> :fail, :atom=> :fail}), we will produce an object like this, but in many cases we want a valid javascript object that will transform numbers and atoms to strings. Perhaps add a map_to_object/2 ?
The text was updated successfully, but these errors were encountered: