How to efficiently assign a variable depth nested object only with a value and a string of type:

```
const names = 'obj.source.name'
const value = 'myValue'

```

To get:

```
{ obj: { source: { name: 'myValue' } } }

```