Skip to content

Instantly share code, notes, and snippets.

@bjorngi
Created March 14, 2019 09:50
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 bjorngi/430bf1484f3b93af8f801f1d0e3f2c1e to your computer and use it in GitHub Desktop.
Save bjorngi/430bf1484f3b93af8f801f1d0e3f2c1e to your computer and use it in GitHub Desktop.
// 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