Created
December 5, 2022 04:50
-
-
Save LuckyArdhika/002314bf93cc5f6402f6049fa1aa8eae 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
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