This first sample is necessary to make the array functions work pre Internet Explorer 9. The code has been copied from https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/ and represents the original specification so should work perfectly.

The second sample creates aliases for array functions which are often known by other names, I don’t necessarily recommend you use these, but it can be useful if you’d have expected to see these functions by another name.

Advertisements