|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
847 bytes
|
| Line | |
|---|
| 1 | import { ValueIteratee } from '../_internal/ValueIteratee.js';
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * This method is like `sortedLastIndex` except that it accepts `iteratee`
|
|---|
| 5 | * which is invoked for `value` and each element of `array` to compute their
|
|---|
| 6 | * sort ranking. The iteratee is invoked with one argument: (value).
|
|---|
| 7 | *
|
|---|
| 8 | * @template T
|
|---|
| 9 | * @param {ArrayLike<T> | null | undefined} array - The sorted array to inspect.
|
|---|
| 10 | * @param {T} value - The value to evaluate.
|
|---|
| 11 | * @param {ValueIteratee<T>} iteratee - The iteratee invoked per element.
|
|---|
| 12 | * @returns {number} Returns the index at which `value` should be inserted into `array`.
|
|---|
| 13 | *
|
|---|
| 14 | * @example
|
|---|
| 15 | * sortedLastIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x');
|
|---|
| 16 | * // => 1
|
|---|
| 17 | */
|
|---|
| 18 | declare function sortedLastIndexBy<T>(array: ArrayLike<T> | null | undefined, value: T, iteratee: ValueIteratee<T>): number;
|
|---|
| 19 |
|
|---|
| 20 | export { sortedLastIndexBy };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.