Created
March 21, 2020 00:16
-
-
Save paullj/122d9a05630cb4add4d4429f43b04591 to your computer and use it in GitHub Desktop.
Mapping problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fromThis = [ | |
{ | |
name: 'A', | |
child: { | |
x: "X", | |
y: "Y" | |
} | |
}, | |
{ | |
name: 'B', | |
child: { | |
z: "Z" | |
} | |
} | |
]; | |
toThis = [ | |
{ | |
name: 'A', | |
child: "X" | |
}, | |
{ | |
name: 'A', | |
child: "Y" | |
}, | |
{ | |
name: 'B', | |
child: "Z" | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment