Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on range.js – JavaScript's missing range function..
Number.prototype.to = function(to){r=[]; for(var i=this+0; i<=to; i++){ r.push(i)} return r;}
1..to(5) //[1,2,3,4,5]
There are no comments on this comment yet.
Number.prototype.to = function(to){r=[]; for(var i=this+0; i<=to; i++){ r.push(i)} return r;}
1..to(5) //[1,2,3,4,5]