Spread in object literals #7801
Answered
by
HaloFour
Abdalla-Sleman
asked this question in
Language Ideas
-
Copying and merging objects : example in javaScript you can do somthing like this : const obj1 = { foo: "bar", x: 42 }; const mergedObj = { ...obj1, ...obj2 }; |
Beta Was this translation helpful? Give feedback.
Answered by
HaloFour
Jan 2, 2024
Replies: 2 comments 1 reply
-
How would this work in C# where types must be defined up front? |
Beta Was this translation helpful? Give feedback.
1 reply
-
See: #2879 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Abdalla-Sleman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See: #2879