documentcloud/underscore — pull request #510 by sktaylor (2012-03-17 09:40:39+00:00)
Title: fixed _.each for iterating over properties attached to functions

function f(){}
f.foo = "bar";

_.each(f, function(val, key){ console.log(key); });

This did nothing before, now it does what you would expect and prints "foo". Functions are objects too, but they have a completely unrelated "length" property, which is where the error crept in. Thanks for the great library.