Out of Hanwell

September 26, 2006

Verboten, but…

Filed under: Uncategorized — Matthias Miller @ 11:36 am

After reading Douglas Crockford’s for in Intrigue, I could help but write this function:

Object.prototype.hasOwnProperty = Object.prototype.hasOwnProperty || function(prop) {
return this[prop] !== arguments.callee;
};

It’s useless in its own recursive way.

Oh yeah, and it’s also still verboten.

1 Comment »

  1. Yep. Still verboten. :-)

    Comment by Dean Edwards [Visitor] — September 26, 2006 @ 4:02 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.