Created
March 14, 2019 09:50
-
-
Save bjorngi/430bf1484f3b93af8f801f1d0e3f2c1e to your computer and use it in GitHub Desktop.
This file contains 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
// Two requests | |
const req1 = [{ | |
id: 1, | |
data: 'data', | |
}, { | |
id: 2, | |
data 'data2', | |
}] | |
const req2 = [{ | |
id: 2, | |
data: 'cachedData' | |
}] | |
// Should theese two become this? | |
const output = [{ | |
id: 1, | |
data: 'data', | |
}, { | |
id: 2, | |
data 'cachedData', | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment