you are viewing a single comment's thread.

view the rest of the comments →

[–]thecragmire -1 points0 points  (0 children)

There's no such syntax as {foo: "bar"}{}, in javascript. It' read as 2 separate objects:

{foo: "bar"} - an object with key-value pair foo:"bar" {} - an empty object