Urara-Blog/node_modules/.pnpm-store/v3/files/75/b3c238cd289247fa2be011f3cdd63fb4cd1c6c5f884d5eb3294b0c203e414b5781bc4d02846908ba2142c7edbfdeba425dd25d2c0cec5773289daa706d3dac
2022-08-14 01:14:53 +08:00

21 lines
528 B
Text

/**
* A specialized version of `_.forEachRight` for arrays without support for
* iteratee shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEachRight(array, iteratee) {
var length = array == null ? 0 : array.length;
while (length--) {
if (iteratee(array[length], length, array) === false) {
break;
}
}
return array;
}
module.exports = arrayEachRight;