空の配列を10個生成
Array.apply(null, {length:10});
> [undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined]
順列の値を含む配列を生成
Array.apply(null, {length:10}).map(Number.call, Number);
> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
値を文字列にして生成
Array.apply(null, {length:10}).map(Number.call, String)
> ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]