Now, before going in to dig deeper, let’s first discuss some real-life examples so that at the end, we can have better clarity about Proxy. This is how bitfish explained it in his article.
First things first: The official definition of
Proxy from MDN is:
“The `Proxy_` object enables you to create a proxy for another object, which can intercept and redefine fundamental operations for that object.”_
As human beings, we have a lot of things to do in our day-to-day life, such as reading emails, receiving a delivery, etc. Sometimes, we may feel a little anxious because of a lot of extra and unnecessary tasks — like there are a lot of spam emails and it takes some effort and time to get rid of them, or the delivery received may contain bombs planted by terrorists, threatening our security (just a possibility).
That’s where you want someone to protect you from these kinds of threats: a loyal housekeeper. We need someone who does something extra for us to protect what we’re doing.
So, to tackle this problem, a new feature called Proxy was introduced in ECMAScript 2015, commonly known as ES6. With Proxy, we can find a loyal housekeeper for the object and help us enhance the original functions of the object.
For a person, we might have operations like reading mail, picking up delivery, etc., and the housekeeper can do that for us. For an object, the fundamental operations can be the property lookup, assignment, enumeration, and function invocations, etc., which can also be enhanced by the proxy object.
Looking to build dynamic, extensively featured, and full-fledged web applications? **[Hire NodeJs Developer](https://hourlydeveloper.io/hire-dedicated-node-js-developer/ "Hire NodeJs Developer")** to create a real-time, faster, and scalable...
In this post, we are putting curated list of top tools with key features and download links "Top 19 Front End Web Development Tools to Consider in 2020"
Today I wanted to share with you the tools I daily use to increase my productivity as a front-end developer. 6 tools to increase your productivity as a Front-end developer.
In this article, I am going to talk about best practices to follow when structuring the project’s frontend architecture, writing front-end code, and preparing for deployment. Front-End Web Development Best Practices