Skip to content

Instantly share code, notes, and snippets.

@mpycio
Created July 11, 2023 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpycio/48210b2b496aa962535ac0804c5943dc to your computer and use it in GitHub Desktop.
Save mpycio/48210b2b496aa962535ac0804c5943dc to your computer and use it in GitHub Desktop.
void main() {
var person = {
"name" : "Marcin",
"age" : 48,
"foot": "left"
};
var updates = {
"name": "Kaks",
"age": 25,
"playingStyle": "Agressive"
};
print("Original:");
print(person);
print("After merge:");
print({...person, ...updates});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment