function addSections(list, delimiter) {
      var numAdded = 0,
        listLength = list.length;
      for (var i = 1; i < listLength; i++) {
        var index = i + numAdded,
          emptyCard = { n: '', q: 0 };
        if (list[index][delimiter] !== list[index - 1][delimiter]) {
          list.splice(index, 0, emptyCard);
          numAdded++;
        }
      }
      return list;
    }
// See section(), except delimiter is the card property name (eg. 'c', not 'color') and is not optional
See section(), except delimiter is the card property name  and is not optional
See section () except delimiter is the card property name and is not optional
function addSections(list, delimiter) {
      var numAdded = 0,
        listLength = list.length;
      for (var i = 1; i < listLength; i++) {
        var index = i + numAdded,
          emptyCard = { n: '', q: 0 };
        if (list[index][delimiter] !== list[index - 1][delimiter]) {
          list.splice(index, 0, emptyCard);
          numAdded++;
        }
      }
      return list;
    }
function addSections ( list , delimiter ) { var numAdded = 0 , listLength = list . length ; for ( var i = 1 ; i < listLength ; i ++ ) { var index = i + numAdded , emptyCard = { n : '' , q : 0 } ; if ( list [ index ] [ delimiter ] !== list [ index - 1 ] [ delimiter ] ) { list . splice ( index , 0 , emptyCard ) ; numAdded ++ ; } } return list ; }
See section(), except delimiter is the card property name (eg.
See section () except delimiter is the card property name ( eg .