1.0.2 • Published 12 months ago
imjano_get_object_in_object v1.0.2
Get object in object
Given a path divided by dots (example: 'foo.bar') you can find an object inside another parent object
Installation
npm install imjano_get_object_in_object
Usage
const path = 'foo.bar'
const obj = { foo: { bar: 'hello' } }
console.log(getObjectInObject(obj, path)) //output: 'hello'