The JavaScript Proxy object can be a very powerful tool to extend the functionality of objects. In this collection, we will explore the basics of the Proxy object and how to use it in your code. We will also look at a handful of practical examples that show how you can think about using proxies in your code.
A quick introduction to the JavaScript Proxy object and where it can be used.
JavaScript, Object · Apr 2, 2023
Using the Proxy object, we can create dynamic getters and setters for objects in JavaScript.
JavaScript, Object · Apr 9, 2023
Freezing objects is not the only way to prevent mutations. Learn how you can leverage the Proxy object to your advantage.
JavaScript, Object · Apr 10, 2022
Learn how to implement the singleton design pattern in JavaScript, using the Proxy object.
JavaScript, Object · Sep 28, 2021
Using the Proxy object, we can create chainable dynamic getters for objects in JavaScript.
JavaScript, Object · May 28, 2023
Learn how you can leverage the Proxy object to use a JavaScript object the same way as you would use a regular array.
JavaScript, Object · Sep 27, 2021
Ever wanted to use negative indices in JavaScript arrays? Here's a simple way to do it using a Proxy.
JavaScript, Array · Oct 2, 2022
Turns out the Proxy object is not extensible, but there's a way around its limitations.
JavaScript, Object · Apr 17, 2023
Learn how to type check objects at runtime using the powerful Proxy object in JavaScript.
JavaScript, Object · Apr 23, 2023