Complete residential site build with Docker Compose & Gitea Actions deployment
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import { FORBIDDEN_PATH_KEYS } from "@astrojs/internal-helpers/object";
|
||||
function dlv(obj, key) {
|
||||
for (const k of key.split(".")) {
|
||||
if (FORBIDDEN_PATH_KEYS.has(k) || !obj || typeof obj !== "object" || !Object.hasOwn(obj, k)) {
|
||||
return void 0;
|
||||
}
|
||||
obj = obj[k];
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
export {
|
||||
dlv as default
|
||||
};
|
||||
Reference in New Issue
Block a user