I\'m confused what the object[foo] term is referring to. Any hints? I know that bar[\'unique_prop\'] and bar.unique_prop refers to
object[foo]
bar[\'unique_prop\']
bar.unique_prop
It is the same as object.whatever_x_is where x is foo.toString() which will be the same as bar.toString() since (unless overridden) calling toString on a generic object will generate a generic "is an object" string such as "[object Object]"
object.whatever_x_is
x
foo.toString()
bar.toString()
toString
"[object Object]"