[Dojo-interest] dictionary.forEach - anyone know the syntax for use?

Robert Coup robert.coup at onetrackmind.co.nz
Thu Jan 11 15:30:36 MST 2007


troyf wrote:
> Does anyone know the syntax for iterating a dictionary object?
var iter = myDict.getIterator();
while (!iter.atEnd()) {
    var dictEntry = iter.get();

    // key is available as dictEntry.key
    // value is available as dictEntry.value
}

HTH,

Rob :)

-- 
One Track Mind Ltd.
PO Box 1604, Shortland St, Auckland, New Zealand
Phone +64-9-966 0433 Mobile +64-21-572 632
Web http://www.onetrackmind.co.nz 




More information about the Dojo-interest mailing list