Sha256: 31a10902c20e65ab63869587d18ffa300a3f4f3ddf46051ec6f9df82ffeafa0f

Contents?: true

Size: 679 Bytes

Versions: 279

Compression:

Stored size: 679 Bytes

Contents

var baseSortedIndex = require('./_baseSortedIndex');

/**
 * This method is like `_.sortedIndex` except that it returns the highest
 * index at which `value` should be inserted into `array` in order to
 * maintain its sort order.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 * @example
 *
 * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
 * // => 4
 */
function sortedLastIndex(array, value) {
  return baseSortedIndex(array, value, true);
}

module.exports = sortedLastIndex;

Version data entries

279 entries across 275 versions & 31 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/lodash/sortedLastIndex.js
immosquare-cleaner-0.1.59 node_modules/lodash/sortedLastIndex.js
immosquare-cleaner-0.1.58 node_modules/lodash/sortedLastIndex.js
immosquare-cleaner-0.1.57 node_modules/lodash/sortedLastIndex.js
immosquare-cleaner-0.1.56 node_modules/lodash/sortedLastIndex.js
immosquare-cleaner-0.1.55 node_modules/lodash/sortedLastIndex.js
immosquare-cleaner-0.1.54 node_modules/lodash/sortedLastIndex.js
immosquare-cleaner-0.1.53 node_modules/lodash/sortedLastIndex.js
immosquare-cleaner-0.1.52 node_modules/lodash/sortedLastIndex.js
trusty-cms-6.3.1 node_modules/lodash/sortedLastIndex.js
immosquare-cleaner-0.1.51 node_modules/lodash/sortedLastIndex.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/sortedLastIndex.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/sortedLastIndex.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/sortedLastIndex.js
immosquare-cleaner-0.1.50 node_modules/lodash/sortedLastIndex.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/sortedLastIndex.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/sortedLastIndex.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/lodash/sortedLastIndex.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/lodash/sortedLastIndex.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/lodash/sortedLastIndex.js