PHP 8.2.30
Preview: example.js Size: 245 B
/home/byroehnu/easepay.easetack.com/node_modules/undefsafe/example.js

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

Directory Contents

Dirs: 2 × Files: 8

Name Size Perms Modified Actions
.github DIR
- drwxr-xr-x 2026-03-14 01:49:10
Edit Download
lib DIR
- drwxr-xr-x 2026-03-14 01:49:10
Edit Download
127 B lr--r--r-- 2026-03-14 01:49:10
Edit Download
364 B lrw-r--r-- 2026-02-03 15:06:44
Edit Download
240 B lrw-r--r-- 2026-02-03 15:06:44
Edit Download
283 B lrw-r--r-- 2026-02-03 15:06:46
Edit Download
245 B lrw-r--r-- 2026-02-03 15:06:46
Edit Download
1.09 KB lrw-r--r-- 2026-02-03 15:06:46
Edit Download
784 B lrw-r--r-- 2026-02-03 15:06:46
Edit Download
1.38 KB lrw-r--r-- 2026-02-03 15:06:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).