Skip to content

$cloneObject

$cloneObject will clone a previously created object.

Usage

$cloneObject[objectName;newObjectName]

Parameters

FieldTypeDescriptionRequired
objectNamestringThe name of the object that will be cloned.true
newObjectNamestringThe new name for the cloned object.true

Example(s)

1
client.command({
2
name: "cloneObject",
3
code: `
4
$getObjectProperty[Another Name;Leref]
5
$cloneObject[Object Name;Another Name]
6
$createObject[Object Name;{
7
"Leref": "Ferel",
8
"aoi.js": "dbd.js"
9
}]
10
`
11
});