Determines whether the Dictionary contains a specific key.
Namespace: MindFusion.Mapping
Package: Dictionary.js
JavaScript Copy Code |
---|
function contains (key) |
Object. The key to locate in the dictionary.
Boolean. true if the element exists in the collection, otherwise false.
The following code creates a new Dictionary and adds three LatLong instances with keys the cities they belong to. Then it checks if Paris is among the keys of the Dictionary:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var locations = new m.Dictionary(); |