3 ms·
How do you do object literals with non-indentifier characters in property names? (e.x. { "foo+bar" : "baz" } in JS)
by tlrobinson 17y ago
How do you do object literals with non-indentifier characters in property names? (e.x. { "foo+bar" : "baz" } in JS)
- jashkenas 17y agoYou couldn't, a minute ago. I've just pushed an update to the grammar that allows you to use quoted strings inside of object literals. Thanks for catching it. I really appreciate folks taking the time to find the little missing pieces.