Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 13, 2021. It is now read-only.

Polyfill for JavaScript 1.8.5 Array Generics and ECMAScript 5 Array Extras

License

NotificationsYou must be signed in to change notification settings

plusdude/array-generics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Examples

functionisElement(element){returnelement.nodeType===1;}// example #1console.log(// shorthand slice and standard filterArray.slice(document.childNodes).filter(isElement));// example #2console.log(// shorthand filterArray.filter(document.childNodes,isElement));

Usage

Just include into your document:

<scriptsrc="path_to/array.generics.min.js"></script>

Methods

Available as generics and standard:

MutatorAccessorIterationOther
popconcatforEachisArray
pushjoinevery
reverseslicesome
shiftindexOffilter
sortlastIndexOfmap
splicereduce
unshiftreduceRight

About

Polyfill for JavaScript 1.8.5 Array Generics and ECMAScript 5 Array Extras

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp