API Docs for: 0.3.0
Show:

Utils.clone Class

Module: Utils

Copy an object and all its members recursively. Numbers and others non-objects values are simply copied.

Note: inherit is not a class but a standalone function.

Inherited members are also copied.

Warning: if your object contains several references to the same object, this object will be copied several times.
In case of crossed references, this method will never terminate.

Constructor

Utils.clone

(
  • srcInstance
)

Parameters:

  • srcInstance

Returns:

: copy of srcInstance.

Item Index