4 ms·
Not that I find this idea useful for otherwise limited DTO format, which JSON is, but JS has Map, which may be used for such maps.
by wruza 6y ago
Not that I find this idea useful for otherwise limited DTO format, which JSON is, but JS has Map, which may be used for such maps.
- kevingadd 6y agoSadly because arrays are not immutable you can't meaningfully use them as Map keys. You'd need a tuple type, which does not currently exist.