Why I Test Private Functions In JavaScript
I’ll just write my own debounce function. And if I write it myself, I’m probably going to want to test it. However, I’m probably not going to want to expose it globally. I mean, why would I expose it when it’s just a simple implementation only meant for my particular use case?