> Number.prototype.n = function () { for(var i = +this, a = []; i <= n; a.push(i++)); return a; } [Function] > n = 15 15 > x = 1..n () [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ] > x [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ] >
問題点: ()を書かなきゃいけない.