Removes the element with the specified key from the Dictionary.
Namespace: MindFusion.Mapping
Package: Dictionary.js
JavaScript Copy Code |
---|
function remove (key) |
Object. The key of the element to remove.
The following code creates a new Dictionary adds three LatLong instances with keys the cities they belong to. Then it checks if Paris is among the keys of the Dictionary and if yes – removes it:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var locations = new m.Dictionary(); if( locations.contains("Paris") ) |