This commit is contained in:
2023-11-11 15:21:05 +01:00
parent 1d3bb9e9df
commit 933158108a
379 changed files with 33788 additions and 3030 deletions

14
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