Jul 26, 2021
Thank you. I am def going to try this out. In the meantime, I have some suggestions for improvement to DRY up your code, which I incorporated.
You only need normalize, the other 4 functions literally do the same thing.
Here's my Typescript version of your solution: