Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Currying in JavaScript.
While that works for many cases it isn't generally true. For instance:
function wtf() { return arguments[0]; }
function accessor(value) { if (typeof value === 'undefined') { return getValue(); } else { setValue(value): } }
While that works for many cases it isn't generally true. For instance:
While that may seem like a ridiculous example, the following idiom is quite common in JS programming: In general it's not a good idea to expect any particular value for a function's length property.