题目

var arr = [1, 2];
arr[10] = 10;
arr.filter(x => x === undefined);

答案

[]

解析

数组中间的几项没有值,是空(empty),连 undefined 也不是。