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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i indexof-shim

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • ralt