function findIndexInArray(aArray, fnPredicate) {
			if (aArray == null) {
				throw new TypeError('findIndex called with null or undefined array');
			}
			if (typeof fnPredicate !== 'function') {
				throw new TypeError('predicate must be a function');
			}

			var iLength = aArray.length;
			var fnThisArg = arguments[1];
			var vValue;

			for (var iIndex = 0; iIndex < iLength; iIndex++) {
				vValue = aArray[iIndex];
				if (fnPredicate.call(fnThisArg, vValue, iIndex, aArray)) {
					return iIndex;
				}
			}
			return -1;
		}
/**
		 * Finds the index of an element, satisfying provided predicate.
		 *
		 * @param {array} aArray The array to be predicted
		 * @param {function} fnPredicate Testing function
		 * @returns {number} The index in the array, if an element in the array satisfies the provided testing function
		 * @private
		 */
Finds the index of an element, satisfying provided predicate.
@param {array} aArray The array to be predicted
@param {function} fnPredicate Testing function
@returns {number} The index in the array, if an element in the array satisfies the provided testing function
@private
Finds the index of an element satisfying provided predicate . @param { array } aArray The array to be predicted @param { function } fnPredicate Testing function @returns { number } The index in the array if an element in the array satisfies the provided testing function @private
function findIndexInArray(aArray, fnPredicate) {
			if (aArray == null) {
				throw new TypeError('findIndex called with null or undefined array');
			}
			if (typeof fnPredicate !== 'function') {
				throw new TypeError('predicate must be a function');
			}
			var iLength = aArray.length;
			var fnThisArg = arguments[1];
			var vValue;
			for (var iIndex = 0; iIndex < iLength; iIndex++) {
				vValue = aArray[iIndex];
				if (fnPredicate.call(fnThisArg, vValue, iIndex, aArray)) {
					return iIndex;
				}
			}
			return -1;
		}
function findIndexInArray ( aArray , fnPredicate ) { if ( aArray == null ) { throw new TypeError ( 'findIndex called with null or undefined array' ) ; } if ( typeof fnPredicate !== 'function' ) { throw new TypeError ( 'predicate must be a function' ) ; } var iLength = aArray . length ; var fnThisArg = arguments [ 1 ] ; var vValue ; for ( var iIndex = 0 ; iIndex < iLength ; iIndex ++ ) { vValue = aArray [ iIndex ] ; if ( fnPredicate . call ( fnThisArg , vValue , iIndex , aArray ) ) { return iIndex ; } } return - 1 ; }
Finds the index of an element, satisfying provided predicate.
Finds the index of an element satisfying provided predicate .