Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gamtiq/array-indexof-shim
Shim for ECMAScript 5 Array.prototype.indexOf
https://github.com/gamtiq/array-indexof-shim
Last synced: about 7 hours ago
JSON representation
Shim for ECMAScript 5 Array.prototype.indexOf
- Host: GitHub
- URL: https://github.com/gamtiq/array-indexof-shim
- Owner: gamtiq
- License: mit
- Created: 2013-12-10T16:38:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-06T21:18:40.000Z (almost 10 years ago)
- Last Synced: 2024-04-14T23:00:03.101Z (7 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
README
# array-indexof-shim
Shim for ECMAScript 5 Array.prototype.indexOf.
Based on [source from Mozilla](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf).## Installation
Via [Component](https://github.com/componentjs/component):
component install gamtiq/array-indexof-shim
## Usage
```js
var indexOf = require("array-indexof-shim");
...
var nIndex1 = someArray.indexOf(someValue1, nStartIndex);
var nIndex2 = indexOf.call(someArray, someValue2);
```## Licence
MIT