Sep 4, 2018 · 1 min read
Nice article, thank — it helped me :)
I altered it a bit since I am using TypeScript, which means that you can save some of the type-validations,
here’s how it looks:
https://gist.github.com/eitanavgil/1c7f6e442476948ea7230523c2919bfe