Exercise: Proxy with Pre-Initialization Queues

Practice how to create a wrapper for adding pre-initialized queues using Proxy.

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.

Get hands-on with 1400+ tech skills courses.