var words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];
words[50]='hahaha'
words.filter(function(value){
    console.log(value)
});

结果应为:
"spray"
"limit"
"elite"
"exuberant"
"destruction"
"present"
"hahaha"