It's also worth noting that `extend` first checks if the new function exists.

Object.keys = fn; // would overwrite
Object.extend('keys', fn); // won't overwrite if already defined


On Feb 7, 2011, at 5:09 PM, Savageman wrote:

> Why Object.extend('forEach', [...]) instead of
> Object.implement('forEach', [...])

Reply via email to