Image from Pexels

In this post, we are going to see what JavaScript Proxies are, how they work and how we can use them.


Proxies were introduced in ES6 and are useful to define a custom behaviour for fundamental operations. In other words, a Proxy is an object that stands between an object and what we could call the outside world. It means that we can wrap an existing object and intercept any access to its attributes or its methods.

How it works?

Three components are important when we talk about Proxies:

  • Target: the object that will be wrapped (it can be any sort)
  • Traps: the…

Mátyás Lancelot Bors

WebDeveloper / Writer / Musician / /

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store