Introduction
Let's dive into the use of method synthesis, the Proxy, and the Reflect class.
We'll cover the following...
The power of method synthesis
Method synthesis is the most powerful form of metaprogramming.
- You can alter the API and the behavior of objects based on the runtime context and state of the objects.
- You can take existing classes and twist and turn them the way it makes sense to meet your needs, far beyond what was intended by the author of a class.
✏️ Method synthesis was not possible until very recently in JavaScript. In the past, all you could do was ...