var statusArray = new Array();
statusArray.forEach(function (item) {
if (checkStatus != item) {
disableall = true;
return false;
}
});
I am returning false but not able break from foreach loop.