I need a set of "complex things" where the "complex thing" is an array of numbers or strings.
Can a simple object be used for this?
Example:
var set = {}; set[[1,2]] = 1; set[[1,2]] = 1; set[["string", "another string"]] = 1; set[["string", "another string"]] = 1;
Now, I expect set have two key / value pairs, and testing in Chrome confirms that it is. Can you rely on this behavior?
source share