Adds useful methods to the JavaScript Object type.
To use this optional module, its repository needs to be added to the application, for example by calling app.addRepository('modules/core/Object.js')
To use this optional module, its repository needs to be added to the application, for example by calling app.addRepository('modules/core/Object.js')
Methods
copy the properties of an object into
a new object
parameters
Object | the source object | |
Object | the (optional) target object |
returns
Object the resulting object |
reduce an extended object (ie. a HopObject)
to a generic javascript object
parameters
HopObject | the HopObject to be reduced |
returns
Object the resulting generic object |
print the contents of an object for debugging
parameters
Object | the object to dump | |
Boolean | recursive flag (if true, dump child objects, too) |