Javascript Object
(→Methods) |
|||
Line 35: | Line 35: | ||
Return:<br/> | Return:<br/> | ||
Object containing all global data of the calling script. | Object containing all global data of the calling script. | ||
+ | |||
+ | |||
+ | == Properties == | ||
+ | |||
+ | * '''AssignSkipPrefix''','''AssignSkipNull''','''AssignSkipUndefined''','''AssignSkipEmpty''','''AssignSkipObject''','''AssignSkipArrayProps''','''AssignSkipArrayIndex''','''AssignDeepCopy''','''AssignFreezeCopy''','''AssignSkipExist''','''AssignFilled''','''AssignFilledSkipObject''' | ||
+ | Numeric flags used ifor assignProps() function. |
Revision as of 13:43, 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.
Properties
- AssignSkipPrefix,AssignSkipNull,AssignSkipUndefined,AssignSkipEmpty,AssignSkipObject,AssignSkipArrayProps,AssignSkipArrayIndex,AssignDeepCopy,AssignFreezeCopy,AssignSkipExist,AssignFilled,AssignFilledSkipObject
Numeric flags used ifor assignProps() function.