Clears the collection.
Namespace: MindFusion.Common.Collections
File: ObservableCollection.js
JavaScript Copy Code |
---|
function clear () |
The following code checks if the count of items in the collection is more than 100 and if so, clears the collection:
JavaScript Copy Code |
---|
var products = new ObservableCollection([product1, product2, ...]); if(products.count() > 100) |