I got this path array:
const path = ["a", "b", "c", "d"]
and an object like:
let obj = { "a": { "b": { "c": { "d": 10, "e": 20 } } } }
and I would like to delete that obj["a"]["b"]["c"]["d"] so my obj
will be
{ "a": { "b": { "c": { "e": 20 } } } }
I've tried to do some path.forEach looping, appending it but couldn't find a proper way which I appended it as I wish to, so I could access obj to the right place.