I possess an item that delves deep into its structure. For instance:
section: {
data: {
x = 4
}
}
The actual one goes even deeper.
How do I go about updating the x value with a function like this:
const keys = [section, data, x];
const update = (newValue, keys) => {
// it should look something like this
// myObjc[section][data][x] = newValue;
}