Bubble Foundry


Posts tagged with: objects

A Subtle Javascript Mistake
I was just pounding my head against what turned out to be a simple Javascript misconception that I hope I can save people from: in tests for the existance of a key, not a value, in an object or array. So the following work: var myObj = {1: "one", 2: "two"} 1 in myObj // […] Read more – ‘A Subtle Javascript Mistake’.