const result = parse('arr[prop]=1', {
nesting: true,
nestingSyntax: 'js'
});
// result
({
arr: []
});
// however, we keyed into the array and made things _weird_
result.arr.prop; // 1!
the choice to be made here is one of these two, i think:
leave it as is, someone is using the syntax incorrectly (true, they should be using arr.prop=1 for an obj, and arr[0] for an array)
bail when we encounter prop keys of arrays (so arr would be a regular [] with no funky properties)
Currently, this is true:
the choice to be made here is one of these two, i think:
arr.prop=1
for an obj, andarr[0]
for an array)arr
would be a regular[]
with no funky properties)