const isDev = process.env.NODE_ENV === 'development'; const debugProxy = isDev ? createLoggingProxy(obj) : obj;
Notice the Reflect.get and Reflect.set calls. Without them: proxy made with reflect 4 best
In modern JavaScript, Proxy and Reflect are built-in objects that work hand-in-hand. This is the most probable context for the phrase. const isDev = process