JavaScript _cash Register please help

please help i am stuck on this challenge for quite some time
below is my code

function checkCashRegister(price, cash, cid) {
  var change = 0;
  var total = 0;
  var proChange = [];
  for (var i = 0; i < cid.length; i++) {
    total += cid [i][1];
  }
  change = cash-price;
  function value(num) {
    switch (num) {
      case 8:
     return 100;
     case 7:
     return 20;
     case 6:
     return 10;
     case 5:
     return 5;
     case 4:
     return 1;
     case 3:
     return 0.25;
     case 2:
     return 0.10;
     case 1:
     return 0.05;
     case 0:
     return 0.01;
    }
  }
  if (change == total) {
    return {status:"CLOSED", change: []};
  } else {
    for (var x = cid.length-1; x > -1; x--) {
      var unitValue = value(x);
      var unitNumber = cid[x][1] / unitValue;
      var changeDivUniValue = Math.floor(change / unitValue);
      var miniValue = Math.min(unitNumber, changeDivUniValue);
      if (changeDivUniValue > 0 && change !== 0) {
        var partOfChange = (miniValue * unitValue);
        change -= partOfChange;
        change = parseFloat((change).toFixed(2));
        cid[x].pop();
        cid[x].push(partOfChange);
        proChange.push(cid[x]);
      }
    }
    if (change > 0) {
      return {status:"INSUFFICIENT_FUNDS", change:[proChange]};
    }else
    return {status:"OPEN", change:[proChange]};
  }
}

console.log(checkCashRegister(19.5, 20, [["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.1], ["QUARTER", 4.25], ["ONE", 90], ["FIVE", 55], ["TEN", 20], ["TWENTY", 60], ["ONE HUNDRED", 100]]));

What problems are you experiencing? What kind of help are you seeking?

when running the code it does not return all three conditions only the first condition which is the object

proChange is already a two-dimensional array, so returning [proChange] returns a three-dimensional array, which is not what the challenge instructions expect. This will not completely solve some other logic problems, but will at least allow you to pass a few of the tests.

Should i just change the pro?