Why the debounce polyfill works: Part 2: Edge cases

preview_player
Показать описание
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.

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:

😎Socials
Рекомендации по теме
Комментарии
Автор

Explanation on this keyword was the best 👍🏻

anonymous_dev