Returns the target value in a nested JSON object, based on the given key
const data = { level1: { level2: { level3: 'some data' } }};dig(data, 'level3'); // 'some data'dig(data, 'level4'); // undefined
Generated using TypeDoc
Returns the target value in a nested JSON object, based on the given key
Example