The following shows that when a key starts as an array, values that match Object.prototype keys are basically treated as if they are just an empty bracket for some reason. I would not expect the 1 property to exist in the example below:
$ node -pe 'require("qs").parse("a[]=b&a[hasOwnProperty]=c&a[x]=y")'
{ a: { '0': 'b', '1': 'c', x: 'y' } }
$ node -pe 'require("qs/package").version'
2.4.1
The following shows that when a key starts as an array, values that match
Object.prototypekeys are basically treated as if they are just an empty bracket for some reason. I would not expect the1property to exist in the example below: