Skip to content

gamtiq/array-indexof-shim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

array-indexof-shim

Shim for ECMAScript 5 Array.prototype.indexOf.
Based on source from Mozilla.

Installation

Via Component:

component install gamtiq/array-indexof-shim

Usage

var indexOf = require("array-indexof-shim");
...
var nIndex1 = someArray.indexOf(someValue1, nStartIndex);
var nIndex2 = indexOf.call(someArray, someValue2);

Licence

MIT

About

Shim for ECMAScript 5 Array.prototype.indexOf

Resources

License

Stars

Watchers

Forks

Packages

No packages published