File manager - Edit - /usr/lib/node_modules/nodemon/node_modules/undefsafe/example.js
Back
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
| ver. 1.4 |
Github
|
.
| PHP 5.6.40 | Generation time: 0 |
proxy
|
phpinfo
|
Settings