"JavaScript hash table keys" by Ned
It looks like you’ve got a copy/paste error in your first snippet. “for (k in ht)” should probably be “for (k in obj)” now that the loop’s been moved to its own function.
View ArticleJavaScript hash table keys
In JavaScript you can add properties to objects dynamically. You can access those properties both by object.foo and object['foo']. The later is commonly used to use JavaScript objects as hash tables...
View Article
More Pages to Explore .....