2 ms·
> Why doesn't the universal key/value type work for passing a key/values? Because form data (and the FormData object which is what you’re expected to use) is o
by eyelidlessness 4y ago
> Why doesn't the universal key/value type work for passing a key/values?
Because form data (and the FormData object which is what you’re expected to use) is often not a map (in the sense of key -> value) but rather a set of entries (as in, still a key-value container, but the same key might be present multiple times). They definitely could have supported a POJO but I personally like this bit of type strictness (and it’s easily abstracted away if you prefer, in whatever way you prefer).