Lines Matching defs:fromIndex

807    * @param {number} fromIndex The index to search from.
811 function baseFindIndex(array, predicate, fromIndex, fromRight) {
813 index = fromIndex + (fromRight ? 1 : -1);
824 * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
829 * @param {number} fromIndex The index to search from.
832 function baseIndexOf(array, value, fromIndex) {
834 ? strictIndexOf(array, value, fromIndex)
835 : baseFindIndex(array, baseIsNaN, fromIndex);
844 * @param {number} fromIndex The index to search from.
848 function baseIndexOfWith(array, value, fromIndex, comparator) {
849 var index = fromIndex - 1,
1295 * @param {number} fromIndex The index to search from.
1298 function strictIndexOf(array, value, fromIndex) {
1299 var index = fromIndex - 1,
1317 * @param {number} fromIndex The index to search from.
1320 function strictLastIndexOf(array, value, fromIndex) {
1321 var index = fromIndex + 1;
3869 var fromIndex = 0,
3873 while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
3875 splice.call(seen, fromIndex, 1);
3877 splice.call(array, fromIndex, 1);
5114 return function(collection, predicate, fromIndex) {
5121 var index = findIndexFunc(collection, predicate, fromIndex);
7288 * @param {number} [fromIndex=0] The index to search from.
7313 function findIndex(array, predicate, fromIndex) {
7318 var index = fromIndex == null ? 0 : toInteger(fromIndex);
7335 * @param {number} [fromIndex=array.length-1] The index to search from.
7360 function findLastIndex(array, predicate, fromIndex) {
7366 if (fromIndex !== undefined) {
7367 index = toInteger(fromIndex);
7368 index = fromIndex < 0
7494 * for equality comparisons. If `fromIndex` is negative, it's used as the
7503 * @param {number} [fromIndex=0] The index to search from.
7510 * // Search from the `fromIndex`.
7514 function indexOf(array, value, fromIndex) {
7519 var index = fromIndex == null ? 0 : toInteger(fromIndex);
7688 * @param {number} [fromIndex=array.length-1] The index to search from.
7695 * // Search from the `fromIndex`.
7699 function lastIndexOf(array, value, fromIndex) {
7705 if (fromIndex !== undefined) {
7706 index = toInteger(fromIndex);
9255 * @param {number} [fromIndex=0] The index to search from.
9292 * @param {number} [fromIndex=collection.length-1] The index to search from.
9473 * is used for equality comparisons. If `fromIndex` is negative, it's used as
9482 * @param {number} [fromIndex=0] The index to search from.
9499 function includes(collection, value, fromIndex, guard) {
9501 fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
9504 if (fromIndex < 0) {
9505 fromIndex = nativeMax(length + fromIndex, 0);
9508 ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
9509 : (!!length && baseIndexOf(collection, value, fromIndex) > -1);