"First, let's write the following: Object.prototype.clone"<p>Never, ever add things to Object.prototype. It breaks enumeration over objects using the for...in operator, which in turn breaks lots of other libraries you might want to use later. Sure, this is due to a bug in the core JavaScript spec but it's one we all have to live with.
Javascript: Stop Using It<p>There are many compelling reasons to stop using such a badly-implemented and rather-demented language; but unfortunately there are no compelling alternatives.