3 Examples of using Proxy and Reflect API in JavaScript

preview_player
Показать описание
Not sure what a Proxy is or how to use it in JavaScript? In this video, we take a look at 3 different examples of using a proxy that may be useful in any full-stack application. We also take a look at the Reflect API and how it can help when using the proxy API.

⚡ RESOURCES ⚡

⭐ TIMESTAMPS ⭐
0:00 - Introduction
0:19 - Basic Overview of Proxy
0:49 - Example 1: Logging access to an object
1:18 - Proxy vs Reflect
1:53 - Example 2: Custom error handling
2:35 - Example 3: String utility proxy
3:18 - Conclusion

#javascript #es6 #proxy #reflect

––––––––––––––––––––––––––––––
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
––––––––––––––––––––––––––––––
Рекомендации по теме
Комментарии
Автор

well, hard to imagine a use case for that unless you're building your own framework or a library. If someone asks me such stuff in an interview, I would go 'cmon are you doing some rocket science'?)

shutterradio
Автор

So simple and good. Greetings from Argentina

ssreynoso
Автор

In the last example why use "return Reflect.get(obj, property);" instead of "return obj[property];"?

Daniel_WR_Hart
Автор

Great video.... I watched it am immediately subscribed to the channel.. Thanks bro.

myselfgroot
Автор

explanation is good, but music is too much of a distraction

filcondrat
Автор

Why would you use a proxy and not create a class with getters and setters? What's the difference?

lgiorgos
Автор

little confuse to understand it, please give more example

nikhilchandraroy
Автор

Well made video, however, the music is really annoying though. I would love a world in which your videos didn't have this music!

GRANITE-EDUCATION
Автор

Maybe your explanation is good but the music in the background makes it difficult to concentrate on what you are saying

Ahmed-uqkj
Автор

If you love have dirty hands. You are welcome

daedrikaskhan
welcome to shbcf.ru