contents   index   previous   next



global.ToObject()

syntax:

ToObject(value)

where:

value - to be cast as an object.

 

return:

object - conversion of value.

 

description:

The following table lists how different data types are converted by this function.

 

Boolean
new Boolean object with value

null
generate runtime error

Number
new Number object with value

Object
same as parameter

String
new String object with value

undefined
generate runtime error

see:

global.ToPrimitive()

 

 


global.ToPrimitive