Skip to content

Instantly share code, notes, and snippets.

@LuckyArdhika
Created December 5, 2022 04:50
Show Gist options
  • Save LuckyArdhika/002314bf93cc5f6402f6049fa1aa8eae to your computer and use it in GitHub Desktop.
Save LuckyArdhika/002314bf93cc5f6402f6049fa1aa8eae to your computer and use it in GitHub Desktop.
await Promise.all(
await Object.keys(pojo_data).map(async (x) => {
return await Object.keys(updateData).map((y) => {
if (x == y && pojo_data[x] != updateData[y]) {
console.log('different:', pojo_data[x])
changedData[x] = pojo_data[x]
return { [x]: pojo_data[x] }
}
})
})
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment