Reflect API

Reflect is a built-in object that provides methods for interceptable JavaScript operations.

15 Total 15 Methods 0 Properties 15 Statics
  Show all

Reflect.apply(…)

Calls a target function with arguments as specified by args. Similar to Function.prototype.apply().Reflect.apply(target, thisArgument, argumentsList)

Reflect.apply()

Reflect.apply()

Reflect.construct(…)

Acts like the new operator, but as a function. It is equivalent to calling new target(...args).Reflect.construct(target, argumentsList, [newTarget])

Reflect.construct()

Reflect.construct()

Reflect.defineProperty(…)

Similar to Object.defineProperty(), but returns a Boolean value indicating whether the property was successfully defined.Reflect.defineProperty(target, propertyKey, attributes)

Reflect.deleteProperty(…)

The Reflect.deleteProperty() method allows for the deletion of properties using the delete operator as a function. It returns a Boolean indicating whether or not the property was successfully deleted.Reflect.deleteProperty(target, propertyKey)

Reflect.get(…)

Returns the value of the property. Works like getting a property from an object using dot or bracket notation.Reflect.get(target, propertyKey, [receiver])

Reflect.getOwnPropertyDescriptor(…)

Similar to Object.getOwnPropertyDescriptor(). Returns a property descriptor of the given property if it exists on the object, undefined otherwise.Reflect.getOwnPropertyDescriptor(target, propertyKey)

Reflect.getPrototypeOf(…)

Same as Object.getPrototypeOf(). Returns the prototype of the specified object.Reflect.getPrototypeOf(target)

Reflect.has(…)

Works like the in operator as a function. Returns a boolean indicating whether the target has the property.Reflect.has(target, propertyKey)

Reflect.isExtensible(…)

Same as Object.isExtensible(). Returns a boolean indicating whether the target object is extensible.Reflect.isExtensible(target)

Reflect.ownKeys(…)

Returns an array of the target object's own (not inherited) property keys.Reflect.ownKeys(target)

Reflect.preventExtensions(…)

Similar to Object.preventExtensions(). Returns a boolean indicating whether the target object has been made non-extensible.Reflect.preventExtensions(target)

Reflect.set(…)

Assigns a value to the property of an object. Returns a boolean indicating whether the assignment succeeded.Reflect.set(target, propertyKey, value, [receiver])

Reflect.setPrototypeOf(…)

Same as Object.setPrototypeOf(). Sets the prototype of a specified object to another object or null. Returns a boolean indicating whether the operation was successful.Reflect.setPrototypeOf(target, prototype)

Reflect.getOwnPropertyDescriptor(…)

staticmethod

Similar to Object.getOwnPropertyDescriptor(). Returns a property descriptor of the given property if it exists on the object, undefined otherwise. Reflect.getOwnPropertyDescriptor(target, propertyKey)

You seem to be offline. App may not work.