Implementation of standard Array methods (introduced in ECMAScript 5th edition) and shorthand generics (JavaScript 1.8.5) Browser support: Internet Explorer 6+, Firefox 1.5+, Chrome, Safari, Opera.
function isElement(element) { return element.nodeType === 1; } // example #1 console.log( // shorthand slice and standard filter Array.slice(document.childNodes).filter(isElement) ); // example #2 console.log( // shorthand filter Array.filter(document.childNodes, isElement) );| Mutator | Accessor | Iteration | Other | 
|---|---|---|---|
| pop | concat | forEach | isArray | 
| push | join | every | |
| reverse | slice | some | |
| shift | indexOf | filter | |
| sort | lastIndexOf | map | |
| splice | reduce | ||
| unshift | reduceRight |