Writing unit-tests for a private function that is not exported from a module in JavaScript. Let us see how it can be done without refactoring. (more…)
Read more »
Read the story of how I wrote the world’s fastest JavaScript memoization library - which runs at 50 million ops/sec. Code and benchmarks as proof inside! (more…)
Read more »
Introduction
Let me start this article by thanking the readers of my series, JavaScript: Cracking the Nuts for liking and loving it so far. In this article, we will go through another fundamental but equally misunderstood aspect of JavaScript called... (more…)
Read more »
I figure the best way to learn about something is to try to build it from scratch and see what happens. (more…)
Read more »