Skip to content

Instantly share code, notes, and snippets.

@thcolin
Created March 26, 2017 15:17
Show Gist options
  • Save thcolin/0f1bcf42bbf17de080070985a455945b to your computer and use it in GitHub Desktop.
Save thcolin/0f1bcf42bbf17de080070985a455945b to your computer and use it in GitHub Desktop.
Javascript deep array merge and map exercise
var e = {
itag: ['a', 'b'],
s: ['a', 'b'],
url: ['a', 'b']
}
var f = {
itag: ['c', 'd'],
s: 's',
url: ['c', 'd']
}
var g = [
{
itag: 'a',
s: 'a',
url: 'a'
},
{
itag: 'b',
s: 'b',
url: 'b'
},
{
itag: 'c',
s: 's',
url: 'c'
},
{
itag: 'd',
s: 's',
url: 'd'
}
]
@thcolin
Copy link
Author

thcolin commented Mar 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment