someArray = [{name:"Ibrahim", cid:322}, {name:"Ismail", cid:423}];
As you can see above, this is simple task to do but I haven't found solid way to iterate over this array, perform some action, and later result as below
someArray = [];
So far this is what i have come trough
for (var i = 0; i < someArray.length; i++) {
someArray[i].action()
someArray.splice(0,1);
}
it just don't work as I expected. Appreciate somebody can provide me the way. Thanks