AnsweredAssumed Answered

Looping through map graphics keeps adding undefined and "NaN" objects to array object

Question asked by matthew.f.tenold on Apr 28, 2014
Latest reply on Apr 29, 2014 by matthew.f.tenold
I have the following code and when I debug I keep getting more records than the in array has.  When I look at the in array length it is 15 and I can see the map graphics perfectly defined.  However when I run it I get 41 objects at least.   What is going on?

var events = self.map.graphics.graphics; var matchevents = []; for (var m; events.length; m++) {             matchevents.push(events[m]); }

Outcomes