43081j / picoquery

A small library for parsing and serializing query strings
MIT License
70 stars 2 forks source link

Nesting syntax: js #39

Closed 43081j closed 4 months ago

43081j commented 4 months ago

Not entirely sure if we should add this yet, but a third syntax could be helpful for migration

basically similar to JS itself:

// js syntax
'foo.bar[0]=baz';

// dot syntax
'foo.bar.0=baz';

// index syntax
'foo[bar][0]=baz';

storybook currently uses this syntax for example