Copies a range of elements from this collection to a destination collection.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
SyntaxJavaScript
Copy Code
|
|---|
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.
ExampleThe 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); |
See Also