backend feladat

This commit is contained in:
magdo
2026-02-13 19:14:10 +01:00
parent 6afdef6a30
commit 622d4a3321
877 changed files with 87856 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
var undefsafe = require('undefsafe');
var object = {
a: {
b: {
c: 1,
d: [1, 2, 3],
e: 'remy'
}
}
};
console.log(undefsafe(object, 'a.b.e')); // "remy"
console.log(undefsafe(object, 'a.b.not.found')); // undefined