Created
August 12, 2021 14:49
-
-
Save mrsid96/d840ac8ef770d510f6990f14a163a330 to your computer and use it in GitHub Desktop.
Handy Oneliners
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
const generateCellsValues = (cells) => cells?.reduce((acc, item) => ({ | |
...acc, | |
[item?.column?.id]: item?.value | |
}), {}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment