As a developer, I want to be able to pick a value from an object if the key contains dots.
// Node JS: 12.5.0
const dot = require('dot-object');
test('Can pick value with dotted key', () => {
const object = { 'foo.bar': 'baz' };
expect(dot.pick('foo.bar', object)).toBe('baz');
});
Currently, I am receiving undefined instead of baz.
As a developer, I want to be able to pick a value from an object if the key contains dots.
Currently, I am receiving
undefinedinstead ofbaz.