copy (Copy objects)

$copy is used to copy the transferred object. If the copy algorithm encounters an error, null is returned. The error is written into the browser console.

Syntax

$copy(value)

Parameter

Name

Description

value

The object to be copied.

Return value

The copy of the transferred object or null, in case of any error.

Example

Syntax

Result

$copy($input)

Returns the copy of the input object.