Can anyone show me how to break out of a Sencha Ext.each loop?
found my own answer if you return false, it will not do the next iteration on the loop.
Ext.each(arrayObj, function(obj){
if(obj.isSomethingTrue()){
doSomething();
return false; /*this will prevent each from looking at
the next obj in the arrayObj*/
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With