Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Object update vs. Object.set

$
0
0

This is actually why we’re differentiating between objects and dicts in ReScript (they’re both compiled to JS objects under the hood), dicts are meant to be used with dynamic keys as you’re doing here so this looks correct.

On this topic, why don’t you use URLSearchParams instead of a plain object for query strings though?


Viewing all articles
Browse latest Browse all 2592

Trending Articles