Mega Code Archive
Array prototype
Syntax
Array.prototype.property
Array.prototype.method
The prototype property allows you to add new properties and methods to the Array object that can be used throughout your code.
The following example assigns a new method to the array object with the prototype property.