Copies a range of elements from this collection to a destination collection.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
JavaScript Copy Code |
---|
function copyTo (destination, length, [sourceIndex, [destinationIndex]]) |
IEnumerable. The destination collection.
Type: Number
Number. The length of the range to copy.
Type: Number
Number. The starting index of the range to copy.
Type: Number
Number. The index at which the range should be copied.
The following example copies all items from a collection called janEvents at the end of a collection called febEvents:
JavaScript Copy Code |
---|
janEvents.items.copyTo(febEvents, janEvents.count(), 0, febEvents.count() - 1); |