3 ms·
Yeah this question is confusing without more context, because that is already how JavaScript objects work by default. If you assign multiple times to one key, o
by catlifeonmars 4y ago
Yeah this question is confusing without more context, because that is already how JavaScript objects work by default. If you assign multiple times to one key, only the latest assignment is preserved. It’s more complicated (though not much more) to merge two JavaScript objects while preserving duplicates.