I created one object and the object that I need to pass in one method, where I need to iterate through each object. Since my Obj only matters, so it fails. Can anyone help me on this.
My code is:
var MyObj = {
country : "Aus",
Time : "EST",
Val : "Pecific"
}
Now I need to transfer this MyObj in one way:
this.someMethod(id, MyObj);
In someMethod I have one code like
Ext.Array.forEach(MyObj, function (Value) {})
At this point, it is rejected because it is MyObjnot an array of the object. How to fix it.
David source
share