const nested = {a: {b: {c: {d: {e: {f: true}}}}}}
const flat = {'a.b.c.d.e.f': true}
function getValueAtPath(obj, path){
let curr = obj;
for(let i = 0; i < path.length; i++){
curr = obj[path[i]]
}
return curr;
}
const val = getValueAtPath(nested, ['a', 'b', 'c', 'd', 'e', 'f'])
const val = flat['a.b.c.d.e.f']