Interface ObjectConstructor
Hierarchy
- ObjectConstructor
Index
Methods
assign
-
Type parameters
-
T
-
U
Parameters
-
target: T
The target object to copy to.
-
source: U
The source object from which to copy properties.
Returns T & U
-
-
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
Type parameters
-
T
-
U
-
V
Parameters
-
target: T
The target object to copy to.
-
source1: U
The first source object from which to copy properties.
-
source2: V
The second source object from which to copy properties.
Returns T & U & V
-
-
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
Type parameters
-
T
-
U
-
V
-
W
Parameters
-
target: T
The target object to copy to.
-
source1: U
The first source object from which to copy properties.
-
source2: V
The second source object from which to copy properties.
-
source3: W
The third source object from which to copy properties.
Returns T & U & V & W
-
-
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
Parameters
-
target: object
The target object to copy to.
-
Rest ...sources: any[]
One or more source objects from which to copy properties
Returns any
-
defineProperty
-
Adds a property to an object, or modifies attributes of an existing property.
Parameters
-
o: any
Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
-
propertyKey: PropertyKey
-
attributes: PropertyDescriptor
Descriptor for the property. It can be for a data property or an accessor property.
Returns any
-
getOwnPropertyDescriptor
-
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.
Parameters
-
o: any
Object that contains the property.
-
propertyKey: PropertyKey
Returns PropertyDescriptor | undefined
-
getOwnPropertySymbols
-
Returns an array of all symbol properties found directly on object o.
Parameters
-
o: any
Object to retrieve the symbols from.
Returns symbol[]
-
is
-
Returns true if the values are the same value, false otherwise.
Parameters
-
value1: any
The first value.
-
value2: any
The second value.
Returns boolean
-
setPrototypeOf
-
Sets the prototype of a specified object o to object proto or null. Returns the object o.
Parameters
-
o: any
The object to change its prototype.
-
proto: any | null
The value of the new prototype or null.
Returns any
-
Generated using TypeDoc
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.