Why the debounce polyfill works: Part 2: Edge cases

Опубликовано: 09 Август 2026
на канале: Akilesh Rao
182
10

This is a follow-up to the previous video where we looked at the debounce polyfill and how it works. In this video, we take a look at the edge cases that you'll have to consider when building this polyfill.

Link to part 1:    • Why the debounce polyfill works: Part 1  

Timestamps:
0:00 - Intro
0:44 - Args edge case
2:24 - Method edge case
4:16 - Problem 1: Invalid “this” keyword
5:17 - Solving the problem using the bind method
6:00 - Solving the problem without the bind method
6:48 - Problem 2: Arrow function
9:43 - Outro

🧑‍💻Other playlists:
Playwright crash course:    • Playwright + React Crash Course (2024)  

Tanstack query -    • React/Tanstack Query(2024)  

Push Notifications using SW -    • Push Notifications using Service worker  

Service worker in Javascript (2023) -    • Service worker in Javascript (2023)  

Javascript observers(2023) -    • Javascript Observers(2023)  

The Web components Playlist -    • Web components 2023  

The Git series(2023) -    • The Git series(2023)  

Multitasking in NodeJS -    • Multi tasking in NodeJS  

NodeJS Authentication with Passport -    • NodeJS Authentication with Passport(2021)  

Job scheduling in NodeJS -    • Job scheduling in NodeJS  

NPM Tutorial Series -    • NPM Tutorial Series (2021)  

Javascript(Behind the scenes) -    • Javascript(Behind the scenes)  

😎Socials
🐤 Twitter -   / themangalorian  
📷 Instagram -   / _alt.ar_  
👔 LinkedIn -   / akilesh-rao-610357137  
🧑‍💻 GitHub - https://github.com/AkileshRao
📝 Medium -   / akileshrao19