ObjectConstructor
[<Interface>]
type ObjectConstructor =
abstract member prototype: obj
abstract member Create (?value: obj) : obj
abstract member Invoke (value: obj) : obj
abstract member Invoke () : obj
abstract member assign<'T, 'U, 'V, 'W> (target: 'T, source1: 'U, source2: 'V, source3: 'W) : obj
abstract member assign<'T, 'U, 'V> (target: 'T, source1: 'U, source2: 'V) : obj
abstract member assign<'T, 'U> (target: 'T, source: 'U) : obj
abstract member create (o: obj option, properties: obj) : obj
abstract member create (o: obj option) : obj
abstract member defineProperties<'T> (o: 'T, properties: obj) : 'T
abstract member defineProperty<'T> (o: 'T, p: obj, attributes: attributes) : 'T
abstract member defineProperty<'T> (o: 'T, p: float, attributes: attributes) : 'T
abstract member defineProperty<'T> (o: 'T, p: string, attributes: attributes) : 'T
abstract member entries (o: obj) : ResizeArray<string * obj>
abstract member entries<'T> (o: ArrayLike<'T>) : ResizeArray<string * 'T>
abstract member entries<'T> (o: o<'T>) : ResizeArray<string * 'T>
abstract member freeze<'T> (f: 'T) : 'T
abstract member fromEntries (entries: Iterable<ReadonlyArray<obj>>) : obj
abstract member fromEntries<'T> (entries: Iterable<PropertyKey * 'T>) : fromEntries<'T>
abstract member getOwnPropertyDescriptor (o: obj, p: obj) : PropertyDescriptor option
abstract member getOwnPropertyDescriptor (o: obj, p: float) : PropertyDescriptor option
abstract member getOwnPropertyDescriptor (o: obj, p: string) : PropertyDescriptor option
abstract member getOwnPropertyDescriptors<'T> (o: 'T) : getOwnPropertyDescriptors
abstract member getOwnPropertyNames (o: obj) : ResizeArray<string>
abstract member getOwnPropertySymbols (o: obj) : ResizeArray<obj>
abstract member getPrototypeOf (o: obj) : obj
abstract member groupBy<'K, 'T> (items: Iterable<'T>, keySelector: keySelector<'K,'T>) : groupBy
abstract member hasOwn (o: obj, v: obj) : bool
abstract member hasOwn (o: obj, v: float) : bool
abstract member hasOwn (o: obj, v: string) : bool
abstract member is (value1: obj, value2: obj) : bool
abstract member isExtensible (o: obj) : bool
abstract member isFrozen (o: obj) : bool
abstract member isSealed (o: obj) : bool
abstract member keys (o: obj) : ResizeArray<string>
abstract member preventExtensions<'T> (o: 'T) : 'T
abstract member seal<'T> (o: 'T) : 'T
abstract member setPrototypeOf (o: obj, proto: obj option) : obj
abstract member values (o: obj) : ResizeArray<obj>
abstract member values<'T> (o: ArrayLike<'T>) : ResizeArray<'T>
abstract member values<'T> (o: o<'T>) : ResizeArray<'T>
| |
|---|
| Assembly | Glutinum.Types |
| Inherits | obj \| null |
| Attributes | [<AllowNullLiteral>] [<Interface>] |
Declared inside
Properties
abstract member prototype: obj
A reference to the prototype for a class of objects.
Methods
abstract member Create (?value: obj) : obj
abstract member Invoke (value: obj) : obj
abstract member Invoke () : obj
abstract member assign<'T, 'U, 'V, 'W> (target: 'T, source1: 'U, source2: 'V, source3: 'W) : obj
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
| Parameter | |
|---|
target | The target object to copy to. |
source1 | The first source object from which to copy properties. |
source2 | The second source object from which to copy properties. |
source3 | The third source object from which to copy properties. |
abstract member assign<'T, 'U, 'V> (target: 'T, source1: 'U, source2: 'V) : obj
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
| Parameter | |
|---|
target | The target object to copy to. |
source1 | The first source object from which to copy properties. |
source2 | The second source object from which to copy properties. |
abstract member assign<'T, 'U> (target: 'T, source: 'U) : obj
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
| Parameter | |
|---|
target | The target object to copy to. |
source | The source object from which to copy properties. |
abstract member create (o: obj option, properties: obj) : obj
Creates an object that has the specified prototype or that has null prototype. Creates an object that has the specified prototype, and that optionally contains specified properties.
| Parameter | |
|---|
o | Object to use as a prototype. May be null |
properties | JavaScript object that contains one or more property descriptors. |
abstract member create (o: obj option) : obj
Creates an object that has the specified prototype or that has null prototype. Creates an object that has the specified prototype, and that optionally contains specified properties.
| Parameter | |
|---|
o | Object to use as a prototype. May be null. |
abstract member defineProperties<'T> (o: 'T, properties: obj) : 'T
Adds one or more properties to an object, and/or modifies attributes of existing properties.
| Parameter | |
|---|
o | Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object. |
properties | JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property. |
abstract member defineProperty<'T> (o: 'T, p: obj, attributes: attributes) : 'T
Adds a property to an object, or modifies attributes of an existing property.
| Parameter | |
|---|
o | 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. |
p | The property name. |
attributes | Descriptor for the property. It can be for a data property or an accessor property. |
abstract member defineProperty<'T> (o: 'T, p: float, attributes: attributes) : 'T
Adds a property to an object, or modifies attributes of an existing property.
| Parameter | |
|---|
o | 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. |
p | The property name. |
attributes | Descriptor for the property. It can be for a data property or an accessor property. |
abstract member defineProperty<'T> (o: 'T, p: string, attributes: attributes) : 'T
Adds a property to an object, or modifies attributes of an existing property.
| Parameter | |
|---|
o | 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. |
p | The property name. |
attributes | Descriptor for the property. It can be for a data property or an accessor property. |
abstract member entries (o: obj) : ResizeArray<string * obj>
Returns an array of key/values of the enumerable own properties of an object
| Parameter | |
|---|
o | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
abstract member entries<'T> (o: ArrayLike<'T>) : ResizeArray<string * 'T>
Returns an array of key/values of the enumerable own properties of an object
| Parameter | |
|---|
o | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
abstract member entries<'T> (o: o<'T>) : ResizeArray<string * 'T>
Returns an array of key/values of the enumerable own properties of an object
| Parameter | |
|---|
o | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
abstract member freeze<'T> (f: 'T) : 'T
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
| Parameter | |
|---|
f | Object on which to lock the attributes. |
abstract member fromEntries (entries: Iterable<ReadonlyArray<obj>>) : obj
Returns an object created by key-value entries for properties and methods
| Parameter | |
|---|
entries | An iterable object that contains key-value entries for properties and methods. |
abstract member fromEntries<'T> (entries: Iterable<PropertyKey * 'T>) : fromEntries<'T>
Returns an object created by key-value entries for properties and methods
| Parameter | |
|---|
entries | An iterable object that contains key-value entries for properties and methods. |
abstract member getOwnPropertyDescriptor (o: obj, p: obj) : PropertyDescriptor option
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.
| Parameter | |
|---|
o | Object that contains the property. |
p | Name of the property. |
abstract member getOwnPropertyDescriptor (o: obj, p: float) : PropertyDescriptor option
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.
| Parameter | |
|---|
o | Object that contains the property. |
p | Name of the property. |
abstract member getOwnPropertyDescriptor (o: obj, p: string) : PropertyDescriptor option
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.
| Parameter | |
|---|
o | Object that contains the property. |
p | Name of the property. |
abstract member getOwnPropertyDescriptors<'T> (o: 'T) : getOwnPropertyDescriptors
Returns an object containing all own property descriptors of an object
| Parameter | |
|---|
o | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
abstract member getOwnPropertyNames (o: obj) : ResizeArray<string>
Returns the names 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. The properties of an object include both fields (objects) and functions.
| Parameter | |
|---|
o | Object that contains the own properties. |
abstract member getOwnPropertySymbols (o: obj) : ResizeArray<obj>
Returns an array of all symbol properties found directly on object o.
| Parameter | |
|---|
o | Object to retrieve the symbols from. |
abstract member getPrototypeOf (o: obj) : obj
Returns the prototype of an object.
| Parameter | |
|---|
o | The object that references the prototype. |
abstract member groupBy<'K, 'T> (items: Iterable<'T>, keySelector: keySelector<'K,'T>) : groupBy
Groups members of an iterable according to the return value of the passed callback.
| Parameter | |
|---|
items | An iterable. |
keySelector | A callback which will be invoked for each item in items. |
abstract member hasOwn (o: obj, v: obj) : bool
Determines whether an object has a property with the specified name.
| Parameter | |
|---|
o | An object. |
v | A property name. |
abstract member hasOwn (o: obj, v: float) : bool
Determines whether an object has a property with the specified name.
| Parameter | |
|---|
o | An object. |
v | A property name. |
abstract member hasOwn (o: obj, v: string) : bool
Determines whether an object has a property with the specified name.
| Parameter | |
|---|
o | An object. |
v | A property name. |
abstract member is (value1: obj, value2: obj) : bool
Returns true if the values are the same value, false otherwise.
| Parameter | |
|---|
value1 | The first value. |
value2 | The second value. |
abstract member isExtensible (o: obj) : bool
Returns a value that indicates whether new properties can be added to an object.
| Parameter | |
|---|
o | Object to test. |
abstract member isFrozen (o: obj) : bool
Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
| Parameter | |
|---|
o | Object to test. |
abstract member isSealed (o: obj) : bool
Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
| Parameter | |
|---|
o | Object to test. |
abstract member keys (o: obj) : ResizeArray<string>
Returns the names of the enumerable string properties and methods of an object.
| Parameter | |
|---|
o | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
abstract member preventExtensions<'T> (o: 'T) : 'T
Prevents the addition of new properties to an object.
| Parameter | |
|---|
o | Object to make non-extensible. |
abstract member seal<'T> (o: 'T) : 'T
Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
| Parameter | |
|---|
o | Object on which to lock the attributes. |
abstract member setPrototypeOf (o: obj, proto: obj option) : obj
Sets the prototype of a specified object o to object proto or null. Returns the object o.
| Parameter | |
|---|
o | The object to change its prototype. |
proto | The value of the new prototype or null. |
abstract member values (o: obj) : ResizeArray<obj>
Returns an array of values of the enumerable own properties of an object
| Parameter | |
|---|
o | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
abstract member values<'T> (o: ArrayLike<'T>) : ResizeArray<'T>
Returns an array of values of the enumerable own properties of an object
| Parameter | |
|---|
o | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
abstract member values<'T> (o: o<'T>) : ResizeArray<'T>
Returns an array of values of the enumerable own properties of an object
| Parameter | |
|---|
o | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |