This commit is contained in:
NikolajDanger
2023-01-13 14:30:29 +01:00
parent 4afc1d17df
commit 0844b209b1
287 changed files with 28523 additions and 0 deletions

14
Assignment-3/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