Deletes an item from the collection.
Namespace: MindFusion.Common.Collections
File: ObservableCollection.js
JavaScript Copy Code |
---|
function remove (item) |
Object. The item to remove.
The following code creates a List with products. Then it adds several products to it and checks if a product called productX is present and if yes - removes it. List derives from ObservableCollection.
JavaScript Copy Code |
---|
var product1 = new Object(); var product2 = new Object(); List products = new List();
if(products.contains(productX)) |