Copies a range of elements from this collection to a destination collection.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
JavaScript
![]() |
---|
function copyTo (destination, length, [sourceIndex, [destinationIndex]]) |
IEnumerable. The destination collection.
Number. The length of the range to copy.
Number. The starting index of the range to copy.
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
![]() |
---|
janEvents.items.copyTo(febEvents, janEvents.count(), 0, febEvents.count() - 1); |