for ( var x in foo ) document.write(x);