mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Bump to v4.14.0.
This commit is contained in:
@@ -11,7 +11,7 @@ define(['./_baseIteratee', './_baseSortedIndexBy'], function(baseIteratee, baseS
|
||||
* @category Array
|
||||
* @param {Array} array The sorted array to inspect.
|
||||
* @param {*} value The value to evaluate.
|
||||
* @param {Array|Function|Object|string} [iteratee=_.identity]
|
||||
* @param {Function} [iteratee=_.identity]
|
||||
* The iteratee invoked per element.
|
||||
* @returns {number} Returns the index at which `value` should be inserted
|
||||
* into `array`.
|
||||
@@ -27,7 +27,7 @@ define(['./_baseIteratee', './_baseSortedIndexBy'], function(baseIteratee, baseS
|
||||
* // => 0
|
||||
*/
|
||||
function sortedIndexBy(array, value, iteratee) {
|
||||
return baseSortedIndexBy(array, value, baseIteratee(iteratee));
|
||||
return baseSortedIndexBy(array, value, baseIteratee(iteratee, 2));
|
||||
}
|
||||
|
||||
return sortedIndexBy;
|
||||
|
||||
Reference in New Issue
Block a user