mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
Remove references to _.
This commit is contained in:
@@ -11,7 +11,6 @@ const nativeMax = Math.max;
|
||||
* offset from the end of `array`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to inspect.
|
||||
@@ -20,11 +19,11 @@ const nativeMax = Math.max;
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
* @example
|
||||
*
|
||||
* _.indexOf([1, 2, 1, 2], 2);
|
||||
* indexOf([1, 2, 1, 2], 2);
|
||||
* // => 1
|
||||
*
|
||||
* // Search from the `fromIndex`.
|
||||
* _.indexOf([1, 2, 1, 2], 2, 2);
|
||||
* indexOf([1, 2, 1, 2], 2, 2);
|
||||
* // => 3
|
||||
*/
|
||||
function indexOf(array, value, fromIndex) {
|
||||
|
||||
Reference in New Issue
Block a user