I want to traverse through JavaScript object\'s property
var obj = { a: \'value1\', b: \'value2\', c: \'value3\', d: \'va
Here is how it is done using the ES5 - Object.keys() :
Object.keys(obj).forEach(function(key, idx) { ... });
http://jsfiddle.net/magiccrafter/bvwenh5d/
Mozilla's docs: link