Implement ReturnType<T> Utility Type from Scratch in TypeScriptHey there, TypeScript tinkerers! 👋 Ever thought about how doesReturnType<T> works under the hood? Today we’re going to build our own version of ReturnType<T> from the ground up, so you can see how it works under the hood. Let’s dive in! Why do I nee...Jun 17, 2025·2 min read·3
⏳ How to Timeout a JavaScript Promise (with Code Examples)In this blog, we will learn how to add timeouts to a JavaScript Promise.Mar 13, 2025·2 min read·88
Creating a polyfill for useMemo in ReactJSIn this post, we will learn how to implement a polyfill for useMemo in ReactJS React’s useMemo is an essential hook for performance optimization. It helps you memoize values so that expensive computations only run when necessary. But have you ever th...Mar 9, 2025·2 min read·12
Creating a Polyfill for useCallback in ReactJSIn this post, we will learn how to implement a polyfill for useCallback in ReactJSMar 6, 2025·2 min read·64
🚀 Implementing a Polyfill for Promise.any in JavaScriptIn this post, you will learn how to implement a polyfill for Promise.any in JavaScript. This is a popular frontend interview question.Feb 28, 2025·2 min read·2
Implementing a Polyfill for Promise.race in JavaScriptIn this post, we will learn how to write a polyfill for Promise.race in JavaScriptJan 10, 2025·2 min read·2
Difference between an undefined value and a missing property in TypeScriptThere is one serious issue with the default behavior of the typescript compiler w.r.t optional types. To properly understand the difference between an undefined value and a missing property, let's take an example - Let's say we have the following Pro...Jan 30, 2023·2 min read·76