first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-03-11 18:35:09 -04:00
commit 481c17499d
1371 changed files with 206438 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