Create the get function. It takes 2 arguments:
get
src
path
And returns the value at the given string path.
const src = { nested: { key: 'peekaboo' } } const path = 'nested.key' get(src, path) // -> 'peekaboo'