@newdash/newdash
Version:
javascript/typescript utility library
16 lines (15 loc) • 724 B
TypeScript
/**
* The base implementation of `sortedIndexBy` and `sortedLastIndexBy`
* which invokes `iteratee` for `value` and each element of `array` to compute
* their sort ranking. The iteratee is invoked with one argument (value).
*
* @private
* @param {Array} array The sorted array to inspect.
* @param {*} value The value to evaluate.
* @param {Function} iteratee The iteratee invoked per element.
* @param {boolean} [retHighest] Specify returning the highest qualified index.
* @returns {number} Returns the index at which `value` should be inserted
* into `array`.
*/
export function baseSortedIndexBy(array: any[], value: any, iteratee: Function, retHighest?: boolean): number;
export default baseSortedIndexBy;