(function(key, array) { for(i in key) { !/\d+/g.test(i) && array.push(i); } alert(array); }(window.history, []));