Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Array.prototype.indexOf shim for IE8
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README.md
index.js
package.json

README.md

indexof-shim

Shims the indexOf method. Bonus: it works on NodeLists.

Installation

npm install indexof-shim

API

var indexOf = require('indexof-shim');

var arr = [1, 2, 3];

console.log(indexOf(arr, 2)); // 1
console.log(indexOf(arr, 4)); // -1

Contributors

License

MIT License.

Something went wrong with that request. Please try again.