Reflect

Functions

Link copied to clipboard
fun <T : ERROR CLASS: Symbol not found for JsAny, A : Tuple> construct(target: ConstructorFunction<A, T>, argumentsList: A): T

Constructs the target with the elements of specified array as the arguments and the specified constructor as the new.target value.

fun <T : ERROR CLASS: Symbol not found for JsAny> construct(target: JsClass<T>, argumentsList: ReadonlyArray<ERROR CLASS: Symbol not found for JsAny??>): T
Link copied to clipboard
fun defineProperty(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: PropertyKey, attributes: TypedPropertyDescriptor<*>): Boolean

Adds a property to an object, or modifies attributes of an existing property.

fun defineProperty(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: String, attributes: TypedPropertyDescriptor<*>): Boolean
Link copied to clipboard
fun deleteProperty(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: PropertyKey): Boolean

Removes a property from an object, equivalent to delete target[propertyKey], except it won't throw if target[propertyKey] is non-configurable.

fun deleteProperty(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: String): Boolean
Link copied to clipboard
fun get(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: PropertyKey): ERROR CLASS: Symbol not found for JsAny??

Gets the property of target, equivalent to target[propertyKey] when receiver === target.

fun get(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: String): ERROR CLASS: Symbol not found for JsAny??
Link copied to clipboard
fun getOwnPropertyDescriptor(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: PropertyKey): TypedPropertyDescriptor<*>

Gets the own property descriptor of the specified object. An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.

fun getOwnPropertyDescriptor(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: String): TypedPropertyDescriptor<*>
Link copied to clipboard
fun getPrototypeOf(target: ERROR CLASS: Symbol not found for JsAny): ERROR CLASS: Symbol not found for JsAny??

Returns the prototype of an object.

Link copied to clipboard
fun has(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: PropertyKey): Boolean

Equivalent to propertyKey in target.

fun has(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: String): Boolean
Link copied to clipboard
fun isExtensible(target: ERROR CLASS: Symbol not found for JsAny): Boolean

Returns a value that indicates whether new properties can be added to an object.

Link copied to clipboard
fun ownKeys(target: ERROR CLASS: Symbol not found for JsAny): ReadonlyArray<PropertyKey>

Returns the string and symbol keys of the own properties of an object. The own properties of an object are those that are defined directly on that object, and are not inherited from the object's prototype.

Link copied to clipboard
fun preventExtensions(target: ERROR CLASS: Symbol not found for JsAny): Boolean

Prevents the addition of new properties to an object.

Link copied to clipboard
fun set(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: PropertyKey, value: ERROR CLASS: Symbol not found for JsAny??): Boolean

Sets the property of target, equivalent to target[propertyKey] = value when receiver === target.

fun set(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: String, value: ERROR CLASS: Symbol not found for JsAny??): Boolean
Link copied to clipboard
fun setPrototypeOf(target: ERROR CLASS: Symbol not found for JsAny, proto: ERROR CLASS: Symbol not found for JsAny??): Boolean

Sets the prototype of a specified object o to object proto or null.