squba
Safely access deeply nested properties.
Install
npm i -S squba
or
npm i -S squba
Use
// ORconst squba = const foo = bar: arr: 'a' 'b' 'c' objs: name: 'Mike' address: street: 'Lemontree st.' // 'Mike' // 'Mike' // 'Lemontree st.' // 'Lemontree st.' // undefined // undefined // undefined // undefined
FAQ
- Why such small module? Sindre gives a good answer to this.