This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// yarn add gist:5ceba1081bbf0162b98860b34a511a92 | |
// npm install gist:5ceba1081bbf0162b98860b34a511a92 | |
export const DeepObject = { | |
set: setDeep, | |
get: getDeep | |
}; | |
// https://stackoverflow.com/a/6491621 | |
function getDeep(obj: Object, path: string) { |