Files
NapCatQQ/.pnpm-store/v3/files/da/1a78ab51baecc311d5d845a73ffaedc93deb14c95c5f5b1d876e45e3300176062aeb2d693084e24f0f37342be28e67321e0ef44778d023e955ade5d7ab7755
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

8 lines
207 B
Plaintext

export default function dlv(obj, key, def, p, undef) {
key = key.split ? key.split('.') : key;
for (p = 0; p < key.length; p++) {
obj = obj ? obj[key[p]] : undef;
}
return obj === undef ? def : obj;
}