Skip to content
Array polyfill of common methods for (older) browsers (especially for IE7 and 8)
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
array-polyfill.js
bower.json
gulpfile.js
package.json

README.md

Polyfills for common Array methods

Use them as a polyfill, especially for Internet Explorer 7 and 8.

Based on the great reference at MDN Arrays.

Currently available as single files or a combined file:

  • Array.every
  • Array.some
  • Array.filter
  • Array.forEach
  • Array.indexOf
  • Array.reduce

Installation

Clone github repository: git clone https://github.com/zhongdeliu/array-polyfill.git

or via Bower: bower install array-polyfill (if needed, use --save-dev parameter)

Then include per script tag, before your scripts:

<script type="text/javascript" src="[path-to-file]/array-polyfill.min.js"></script>

Contributing

Source of the polyfills is located in ./src

For enabling the build process perform a npm install after you cloned this repository.

Build the output file with gulp js

License

Combined file is distributed under MIT License

You can’t perform that action at this time.