Merge objects overriding common keys #292
DaniGuardiola
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking for a generic
Object.Override
(can't think of a better name :/) generic that would "merge" one object (origin) into another (target), but instead of using Union on the values, only the values from the origin object would stick, replacing those of the target. Example:My current solution is this:
If this exists, then I've missed it. If not, then I'd suggest adding it!
Beta Was this translation helpful? Give feedback.
All reactions