How do I remove the key \'bar\' from an array foo so that \'bar\' won\'t show up in
for(key in foo){alert(key);}
This is how I would do it
myArray.splice( myArray.indexOf('bar') , 1)