Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 521 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 521 Bytes

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