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