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

21 lines
502 B
Plaintext

/**
* The base implementation of `_.times` without support for iteratee shorthands
* or max array length checks.
*
* @private
* @param {number} n The number of times to invoke `iteratee`.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns the array of results.
*/
function baseTimes(n, iteratee) {
var index = -1,
result = Array(n);
while (++index < n) {
result[index] = iteratee(index);
}
return result;
}
export default baseTimes;