This commit is contained in:
NikolajDanger
2023-01-04 13:32:54 +01:00
parent 27bd644a94
commit f9a0c044c0
287 changed files with 28448 additions and 0 deletions

14
Assignment-2/node_modules/undefsafe/example.js generated vendored Normal file
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