Returns a new Object array, containing the contents of the collection.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
JavaScript Copy Code |
---|
function toArray () |
Array. The array.
The following code creates a List with products and gets its underlying array:
JavaScript Copy Code |
---|
var product1 = new Object(); var product2 = new Object(); productList.addRange([product1, product2, ...]); var products = productList.toArray(); |