for each in JavaScript
I felt that this deserves a tad more attention than just adding this to my del.icio.us bookmarks, but just moments ago I stumbled onto a JavaScript reference page on Mozilla's developer center that spoke of this intrigue about for each ( ... in ... ). I had no idea this existed! I looked over at Dan Webb who's sitting right across from me, and he agreed, it's news to him too. Granted it was implemented in JavaScript 1.6 (which means it will work in Firefox 1.5), but as far as I knew, these were the only things new in JavaScript 1.6.
Anyhow, it's nothing that special. It simply allows you to iterate over the values of an object, and not the keys. Nevertheless, it's nothing you can't already do with just a regular for (in) which returns you the keys of an object... so if you have the keys, and the object... you indeed, have access to the values. Go ahead, have a look.
recent
- Matador: The Obvious MVC Framework for Node
- Sandboxing JavaScript
- Crouching Ender, hidden command
- Ender.js - The open submodule library
- Qwery - The Tiny Selector Engine
- Klass
- Smallest DOMReady code, ever.
- $script.js - Another JavaScript loader
- About that slowness on Twitter...
- Autocomplete Fuzzy Matching
- JavaScript Cache Provider
- JavaScript Animate
- Asynchronous method queue chaining in JavaScript
- Something changed
- Unofficial Twitter Widget Documentation
i am dustin diaz

