I am new to javascript so please excuse me if its something obvious.
Lets say I have a for-in loop as follows...
for( var key in myObj ){
alert("key :" + myObj[key] ); // accessing current key-value pair
//how do I access previous element here?
}
Is it possible to access previous or next key/value pair in for-in loop?