How to Simulate Python's Magic Methods in JavaScript with the Proxy API (Introduction)

preview_player
Показать описание
Buy me a coffee if this is useful 😀

Intro to the Proxy API || Simulating the magic 🪄 methods from python in JavaScript

In this video we will simulate the magic methods from python in javascript, have an Intro to the proxy API and create some magic methods.

code:

more videos like this:

00:00 Python magic methods
01:43 The Proxy API DOCS
04:40 Simulating magic methods in JavaScript [dynamic getters]
08:20 A use case [immer]
16:43 End notes
Рекомендации по теме
Комментарии
Автор

never knew this existed, was literally researching magic methods and how to recreate them in js. its unfortunate there's no inbuilt way

tochithebedford
visit shbcf.ru