 $(groupedObjects0).length) {                             var newArray = [];                             $.each(groupedObjects, function (key, value) {                                 var flag = false;                                 var breakout = false;                                 flag = (function () {                                     $.each(groupedObjects0, function (key0, value0) {                                         if (value.currency === value0.currency) {                                             newArray.push(value0);                                             breakout = true;                                             return false;                                         }                                      });                                     if (!breakout) {                                         return true;                                     }                                 })();                                 if (flag) {                                     newArray.push({                                         value: 0,                                         currency: value.currency                                     });                                 }                             });                             groupedObjects0 = newArray;                         } else if ($(groupedObjects).length 