mirror of
https://github.com/bvanroll/rpiRadio.git
synced 2025-08-30 20:42:44 +00:00
Initial Commit
This commit is contained in:
14
ProjectNow/NodeServer/node_modules/undefsafe/example.js
generated
vendored
Normal file
14
ProjectNow/NodeServer/node_modules/undefsafe/example.js
generated
vendored
Normal 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
|
Reference in New Issue
Block a user