import {getProperty, escapePath} from 'dot-prop';
const object = {
foo: {
bar: ['πΈπ» You found me Mario!'],
},
'foo.bar[0]' : 'π The princess is in another castle!',
};
const escapedPath = escapePath('foo.bar[0]');
console.log(getProperty(object, escapedPath));
//=> 'π The princess is in another castle!'
Fixes #83