creates a copy of an item at the defined position

void copy(string|number id,number index, [object target] );


idstring|numberthe id of an item to copy
indexnumberthe index to create a copy at
targetobjectoptional, the target data collection object

Example"4",5); // copies the item with id:4 to the position with index 5

Related samples

Back to top