JavaScript Reflect Guide
The Reflect API provides methods for interceptable JavaScript operations. It complements Proxy by providing default behavior for each trap. The guide walks through Reflect Methods, Function Invocation, Prototype & Extensibility. `Reflect.get()`, `Reflect.set()`, `Reflect.has()`, `Reflect.deleteProperty()`, `Reflect.ownKeys()`, `Reflect.defineProperty()` correspond to Proxy traps. Always use `Reflect` methods inside Proxy traps for correct behavior. `Reflect.apply(target, thisArg, args)` calls a function with specified `this` and arguments (like `Function.prototype.apply`). `Reflect.construct(target, args)` creates an instance (like `new` operator). The guide is organized into 3 sections that build on each other, each pairing a prose explanation with runnable code. Browse the individual methods covered by this guide in the Reflect category. Key APIs covered include Reflect.get(), Reflect.set(), Reflect.has(), Reflect.isExtensible(), Reflect.preventExtensions(), Reflect.getOwnPropertyDescriptor(). Related guides: Arrays, Strings, Numbers, Math, Date. This is one of 145 JavaScript guides on JS Reference — see the full list on the guides page.