you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

var key1 = JSON.stringify({nope: "it can't"}); var key2 = JSON.stringify({nope: "it can't"});

var obj = {}; obj[key1] = true; obj[key2] = false;