Clears the collection.
Namespace: MindFusion.Common.Collections
File: ObservableCollection.js
SyntaxJavaScript
Copy Code
|
|---|
function clear () |
ExampleThe 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) |
See Also