Creates a virtual Proxy where fixed keys are mapped to a callback function.
The array of allowed keys (or an object whose ownKeys will be used)
The callback fired when a key is accessed
The virtual delegator object
const v = delegator(['a', 'b'], (key) => key.toUpperCase()); Copy
const v = delegator(['a', 'b'], (key) => key.toUpperCase());
Creates a virtual Proxy where fixed keys are mapped to a callback function.