Angus Croll 2/28/2011

Rethinking JavaScript Object Enumeration

Read Original

This technical article discusses the challenges of enumerating properties in JavaScript objects and introduces the ECMAScript 5 methods Object.keys() and Object.getOwnPropertyNames(). It explains their usage, provides code examples for iteration and integration with Array methods, and includes a shim for browser compatibility.

Rethinking JavaScript Object Enumeration

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week