> ({a: "b"}["a"]) "b" > ({a: "b"}[["a"]]) "b" > ({a: "b"}[[["a"]]]) "b" Implicit conversion: the gift that keeps on giving!
-
Show this thread
-
AFAIK this is because an array converted into a string is its contents converted to a string. Objects are indexed by strings, so the index is converted into a string first. > ""+ ["a"] "a" > ""+ [["a"]] "a"
3 replies 0 retweets 7 likesShow this thread -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.