Http://www.w3cschool.cc/js/js-obj-array.html Creating a new method
The prototype is a JavaScript global constructor. It can build properties and methods for new JavaScript objects.
Example: Create a new method. Array.prototype.ucase=function ()
{
for (i=0;i<this.length;i++)
{this[i]=this[i].touppercase ();}
}
More examples
Merging two arrays-concat ()
Merging three arrays-concat ()
Make a string of elements of an array-join ()
Delete the last element of an array-pop ()
Add a new element to the end of the array-push ()
Reverses the order of the elements in an array-reverse ()
Delete the first element of an array-shift ()
Select an element from an array-slice ()
Array sort (ascending alphabetical order)-sort ()
Sort by number (ascending in numeric order)-sort ()
Sort by number (descending in numeric order)-sort ()
Add an element to the 2nd position of the array-splice ()
Convert array to string-tostring ()
Add a new element at the beginning of the array-unshift ()
JS Array Object