mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Bump to v4.13.0.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import baseIteratee from './_baseIteratee';
|
||||
import baseSortedIndexBy from './_baseSortedIndexBy';
|
||||
import baseIteratee from './_baseIteratee.js';
|
||||
import baseSortedIndexBy from './_baseSortedIndexBy.js';
|
||||
|
||||
/**
|
||||
* This method is like `_.sortedIndex` except that it accepts `iteratee`
|
||||
@@ -18,13 +18,13 @@ import baseSortedIndexBy from './_baseSortedIndexBy';
|
||||
* into `array`.
|
||||
* @example
|
||||
*
|
||||
* var dict = { 'thirty': 30, 'forty': 40, 'fifty': 50 };
|
||||
* var objects = [{ 'x': 4 }, { 'x': 5 }];
|
||||
*
|
||||
* _.sortedIndexBy(['thirty', 'fifty'], 'forty', _.propertyOf(dict));
|
||||
* // => 1
|
||||
* _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
|
||||
* // => 0
|
||||
*
|
||||
* // The `_.property` iteratee shorthand.
|
||||
* _.sortedIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x');
|
||||
* _.sortedIndexBy(objects, { 'x': 4 }, 'x');
|
||||
* // => 0
|
||||
*/
|
||||
function sortedIndexBy(array, value, iteratee) {
|
||||
|
||||
Reference in New Issue
Block a user