Say I have a string:
const test = "data[0][something][0][arrayOfStrings][0]";
and an object:
const object = {
data: [
{
something: [
{
arrayOfStrings: ['some string']
}
]
}
]
}
And I want to use the string to set/add a new value to arrayOfStrings. How would I access the object at the location of arrayOfStrings using the given test string?