laoo
v1.0.0
Published
a simple object getter for nested keys
Downloads
2
Maintainers
Readme
laoo
Fetches your desired key even if its deep down somewhere.
const laoo = require('laoo');
const someWeirdObject = {
I: {
am: {
a: {
very: {
weird: {
object: {
bro: 'I am a weird object bro'
}
}
}
}
}
}
};
laoo(someWeirdObject, 'bro'); // returns 'I am a weird object bro'
Disclaimer
Bad code and doesn't work in array of objects.