Executes a provided function once for each element.
Namespace: MindFusion.Mapping
Package: Dictionary.js
JavaScript Copy Code |
---|
function forEach (callback, [context]) |
function. A function to execute for each element.
Object. The invokation context.
The following method prints the coordinates of each city added to the locations Dictionary:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var locations = new m.Dictionary(); locations.forEach(function (key) var m = MindFusion.Maps; var locations = new m.Dictionary(); locations.forEach(function (key) |