Javascript Object: Difference between revisions

From Yate Documentation
Jump to navigation Jump to search
Marian (talk | contribs)
Marian (talk | contribs)
Line 14: Line 14:




* '''assignProps()'''
* '''assignProps(dest,src[,flags,props,prefix,addPrefix])'''
 
Assign object properties to another object.<br/>
Parameters:<br/>
'''dest''' Destination object. Does nothing if not an object.<br/>
'''src''' Source object. Does nothing if not an object.<br/>
'''flags''' Flags controlling the operation. See Object properties for description.<br/>
'''props'''





Revision as of 11:39, 3 September 2024

General

Methods

  • assign(dest[,src[,src1 ...])

Assign object(s) properties to another object.
Parameters:
dest Destination object. Does nothing if not an object.
src Source object. Does nothing if not an object.
src1 ... Other source object(s). Does nothing if not an object.
Return:
Given dest data.


  • assignProps(dest,src[,flags,props,prefix,addPrefix])

Assign object properties to another object.
Parameters:
dest Destination object. Does nothing if not an object.
src Source object. Does nothing if not an object.
flags Flags controlling the operation. See Object properties for description.
props


  • keys([obj])

Retrieve the list of of the calling script.
Parameters:
obj Object to list keys for. List calling script's global data object keys if this parameter is not given.
Return:
Array of key values. null if given object has no properties (e.g. obj=undefined)


  • global()

Retrieve the context (data) of the calling script.
Return:
Object containing all global data of the calling script.