Most built-in JavaScript types are constructors whose prototypes contain the methods and other properties that define their default behavior: You can’t delete or replace a native prototype, but you can edit the values of its properties, or create new ones: Et voila! Our code gets a useful array extension for free. However if you brag … Continue reading Extending JavaScript Natives →
This post first appeared on JavaScript, JavaScript… – By Angus Croll, please read the originial post: here