Files
NapCatQQ/.pnpm-store/v3/files/d8/31cb8e0575281d3aaf5e2ffb7d687002a206475c5c0dc71023587957839cdb5906cde61d414d88d276356ee3658d9de9db6e610926caa08978b1604bd8954b
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
326 B
Plaintext

// Fast method for counting an object's keys
// without resorting to `Object.keys(obj).length
// Will this make a big difference in perf? Probably not
// But we can save a few allocations.
export function countObjectKeys(obj: Record<any, any>) {
let count = 0
for (const _key in obj) {
count++
}
return count
}