indexof-shim

Shims the indexOf method

npm install indexof-shim
1 downloads in the last week
4 downloads in the last month

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.

npm loves you