Numerous Problems Multiplied
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

indexof-shim

0.1.0 • Public • Published

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.

Keywords

none

install

npm i indexof-shim

Downloadsweekly downloads

3

version

0.1.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar