Object
js.lib.Object (extern class)
The js.lib.Object
constructor creates an object wrapper.
Documentation Object by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Static Members
Allows the addition of properties to all objects of type Object.
Copies the values of all enumerable own properties from one or more
source objects to a target object.
Creates a new object with the specified prototype object and properties.
Adds the named properties described by the given descriptors to an object.
Returns |
defineProperties.T |
Adds the named property described by a given descriptor to an object.
Returns an array containing all of the [key, value] pairs of a given
object's own enumerable string properties.
freeze(obj: freeze.T): freeze.T
Freezes an object: other code can't delete or change any properties.
fromEntries(iterable: Any): fromEntries.T
Returns a new object from an iterable of key-value pairs
(reverses Object.entries).
Returns a property descriptor for a named property on an object.
Name |
Type |
obj |
AnonStruct |
prop |
String |
Returns an array containing the names of all of the given object's own
enumerable and non-enumerable properties.
Returns an array of all symbol properties found directly upon a given object.
Returns the prototype of the specified object.
is(value1: is.T, value2: is.T): Bool
Compares if two values are the same value. Equates all NaN values
(which differs from both Abstract Equality Comparison and
Strict Equality Comparison).
Name |
Type |
value1 |
is.T |
value2 |
is.T |
isExtensible(obj: AnonStruct): Bool
Determines if extending of an object is allowed.
isFrozen(obj: AnonStruct): Bool
Determines if an object was frozen.
isSealed(obj: AnonStruct): Bool
Determines if an object is sealed.
Returns an array containing the names of all of the given object's own
enumerable string properties.
preventExtensions(obj: preventExtensions.T): preventExtensions.T
Prevents any extensions of an object.
Name |
Type |
obj |
preventExtensions.T |
Returns |
preventExtensions.T |
seal(obj: seal.T): seal.T
Prevents other code from deleting properties of an object.
setPrototypeOf(obj: setPrototypeOf.T, prototype: Null<AnonStruct>): setPrototypeOf.T
Sets the prototype (i.e., the internal Prototype property).
Name |
Type |
obj |
setPrototypeOf.T |
prototype |
Null |
Returns an array containing the values that correspond to all of
a given object's own enumerable string properties.
Instance Members
The Object constructor creates an object wrapper.
Name |
Type |
Default |
value |
Any |
(optional) |