Exercise: Proxy with Pre-Initialization Queues
Practice how to create a wrapper for adding pre-initialized queues using Proxy.
We'll cover the following...
Problem statement
Using a JavaScript Proxy, create a wrapper for adding pre-initialization queues to any object. You should allow the consumer of the wrapper to decide which methods to augment and the name of the property/event that indicates if the component is initialized.
Coding challenge
Write your solution code in the following code widget. We’ve already added the package.json
file for your ease.
Press + to interact
index.js
package.json
// Write your code here
Solution
Here’s the solution to the above problem. You can go through it by ...