Files
NapCatQQ/.pnpm-store/v3/files/c6/2b5fb16ef3ab7a8d0ddff5f73d3e562c7c71bb1d1090d38f9095ce360209f16f0e7cafd5060451d400096127f083ffeecbc92a0fa5bc25eb26ecbe06e01dd2
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

22 lines
554 B
Plaintext

/**
* A specialized version of `_.map` 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 the new mapped array.
*/
function arrayMap(array, iteratee) {
var index = -1,
length = array == null ? 0 : array.length,
result = Array(length);
while (++index < length) {
result[index] = iteratee(array[index], index, array);
}
return result;
}
export default arrayMap;