|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
468 bytes
|
| Line | |
|---|
| 1 | var sortedIndex = require('./sortedIndex.js');
|
|---|
| 2 | var findIndex = require('./findIndex.js');
|
|---|
| 3 | var _createIndexFinder = require('./_createIndexFinder.js');
|
|---|
| 4 |
|
|---|
| 5 | // Return the position of the first occurrence of an item in an array,
|
|---|
| 6 | // or -1 if the item is not included in the array.
|
|---|
| 7 | // If the array is large and already in sort order, pass `true`
|
|---|
| 8 | // for **isSorted** to use binary search.
|
|---|
| 9 | var indexOf = _createIndexFinder(1, findIndex, sortedIndex);
|
|---|
| 10 |
|
|---|
| 11 | module.exports = indexOf;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.