Access property in an object using a string path. Similar to lodash.get
const obj = {a: {b: {c: 1}}}const c = deepAccessObject(['a', 'b', 'c'], obj)console.log(c) // 1 Copy
const obj = {a: {b: {c: 1}}}const c = deepAccessObject(['a', 'b', 'c'], obj)console.log(c) // 1
path to access
target object
throw error if invalid access or property is undefined. Default is false
Generated using TypeDoc
Access property in an object using a string path. Similar to lodash.get
Example