clone
Creates a new object by cloning an existing object with the same properties.
Syntax
object.clone(withId);
Parameters
Name | Type | Description |
---|---|---|
withId (optional) | string | The ID of the new object. |
Returns
ObjectManager
- The created object manager.
Example
const clonedObject = object.clone('new-id');
Available on: Client Server