dlv
by developit
JavaScriptpushed almost 6 years ago
Safe deep property access in 120 bytes. x = dlv(obj, 'a.b.x')
AI summary
Object accessor
A utility function that safely accesses nested object properties using dot notation or arrays, with options for default values.
- stars
- 1.2K
- forks
- 41
- watching
- 9
- awesome list
- 1
Featured in 1 awesome list
Each link jumps to the spot where the list mentions dlv.