Stay organized with collections Save and categorize content based on your preferences.

blockly > duplicate

duplicate() function

Use **Blockly.clipboard.duplicate** instead.

Duplicate this block and its children, or a workspace comment.

Signature:

export declare function duplicate(toDuplicate: ICopyable): void;

Parameters

Parameter Type Description
toDuplicate ICopyable Block or Workspace Comment to be copied.

Returns:

void