source: frontend/node_modules/underscore/cjs/indexOf.js

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 
1var sortedIndex = require('./sortedIndex.js');
2var findIndex = require('./findIndex.js');
3var _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.
9var indexOf = _createIndexFinder(1, findIndex, sortedIndex);
10
11module.exports = indexOf;
Note: See TracBrowser for help on using the repository browser.