package js.lib
Available on js
The js.lib.Object constructor creates an object wrapper.
Documentation Object by Mozilla Contributors, licensed under CC-BY-SA 2.5.
staticread onlyprototype:ObjectPrototypeAllows the addition of properties to all objects of type Object.
staticassign<T>(target:T, sources:Rest<{}>):TCopies the values of all enumerable own properties from one or more source objects to a target object.
staticcreate<T>(proto:{}, ?propertiesObject:DynamicAccess<ObjectPropertyDescriptor>):TCreates a new object with the specified prototype object and properties.
staticdefineProperties<T>(obj:T, props:DynamicAccess<ObjectPropertyDescriptor>):TAdds the named properties described by the given descriptors to an object.
staticdefineProperty<T>(obj:T, prop:String, descriptor:ObjectPropertyDescriptor):TAdds the named property described by a given descriptor to an object.
staticentries(obj:{}):Array<ObjectEntry>Returns an array containing all of the [key, value] pairs of a given object's own enumerable string properties.
staticfreeze<T>(obj:T):TFreezes an object: other code can't delete or change any properties.
staticfromEntries<T>(iterable:Any):TReturns a new object from an iterable of key-value pairs (reverses Object.entries).
staticgetOwnPropertyDescriptor(obj:{}, prop:String):Null<ObjectPropertyDescriptor>Returns a property descriptor for a named property on an object.
staticgetOwnPropertyNames(obj:{}):Array<String>Returns an array containing the names of all of the given object's own enumerable and non-enumerable properties.
staticgetOwnPropertySymbols(obj:{}):Array<Symbol>Returns an array of all symbol properties found directly upon a given object.
staticgetPrototypeOf<TProto>(obj:{}):Null<TProto>Returns the prototype of the specified object.
staticis<T>(value1:T, value2:T):BoolCompares if two values are the same value. Equates all NaN values (which differs from both Abstract Equality Comparison and Strict Equality Comparison).
staticisExtensible(obj:{}):BoolDetermines if extending of an object is allowed.
staticisFrozen(obj:{}):BoolDetermines if an object was frozen.
staticisSealed(obj:{}):BoolDetermines if an object is sealed.
statickeys(obj:{}):Array<String>Returns an array containing the names of all of the given object's own enumerable string properties.
staticpreventExtensions<T>(obj:T):TPrevents any extensions of an object.
staticseal<T>(obj:T):TPrevents other code from deleting properties of an object.
staticsetPrototypeOf<T>(obj:T, prototype:Null<{}>):TSets the prototype (i.e., the internal Prototype property).
staticvalues(obj:{}):Array<Any>Returns an array containing the values that correspond to all of a given object's own enumerable string properties.
new(?value:Any)The Object constructor creates an object wrapper.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/lib/Object.html