Object module.
- Source:
Methods
-
<static> copy(src, dest) → {object}
-
Copy a object.
Parameters:
Name Type Description srcobject Object to copy from.
destobject Object to copy to.
- Source:
Returns:
- Copied object.
- Type
- object
-
<static> deepCopy(src, dest) → {object}
-
Copy a object deeply.
Parameters:
Name Type Description srcobject Object to copy from.
destobject Object to copy to.
Returns:
- Copied object.
- Type
- object
-
<static> define(def)
-
Define a constructor.
Parameters:
Name Type Description defobject Constructor definition.
Properties
Name Type Description initfunction Initializer of function.
propertiesobject Properties for prototype.
accessorstring[] Generate attr accessor methods.
- Source:
-
<static> fallbackCopy(src, dest) → {object}
-
Copy properties only if not exists in destination.
Parameters:
Name Type Description srcobject Source object.
destobject Destination object.
Returns:
- Destination object.
- Type
- object