Object(native)
Despite of its name Object is a class that contains methods of objects in script.
Example
var obj = { one:1, two:2 }; // creating object from literal // this line here will be evaluated to true: if( obj instanceof Object ) console<<"I am an instance of Object" ; // will output this
Properties
-
className : String
Name of the class if object was created as instance of user defined class.
-
length : Integer
Total number of members this instance contains.
Methods
-
call(thisObj [,p0, ... pN]) : Object
Invokes the function in context of this set to thisObj.
-
clone() : Object
Makes copy of the object and returns it.
-
eval(what[, namespace]) : Object
Evaluates (interprets) what with context of this equal to the object. If namespace object is given then it is used as global namespace for evaluated code.
-
exists(tag, [deep = false]) : Boolean
Checks property by its tag for existence.
-
propertyAt(tag) : Object
Does lookup in the object for member/property by its tag. This is a direct equivalent of obj.tag construction.
-
remove(tag)
Removes property of the function by its tag (a.k.a. name).
-
show(out = console)
Reports class name and list of property name/values of the object. Intended to use for debugging purposes.
-
this() : Object
Constructor, creates instance of Object class - object per se.
-
toString() : String
Returns string "[object Object]".
-
valueOf() : Object
Returns object itself.