News for hackers. Stuff that matters.
Re:The world's smallest and fastest classical JavaScript inh... by kemayo on Saturday February 15, 2014 @12:51PM (#7244536)
This is cool, but I like jashkenas' version in the comments here better.

As much as anything, this is because I maintain a reflexive aversion to touching `Object.prototype`.

If you're disciplined about avoiding this you can use `for ... in` loops without having to dick around with testing whether the properties are actually directly on your object every time, or writing a wrapper that takes a callback.

There are no comments on this comment yet.