function list_merge(a, b) {
      var list = {};
      for (const keyA in a) {
        if (!list.hasOwnProperty(keyA)) {
          list[keyA] = a[keyA];
        }
        b[keyA].forEach(function (card) {
          list_add(list[keyA], card);
        });
      }
      return list;
    }
// Returns a single list with the items of b's list added to a's lists using list_add()
Returns a single list with the items of b's list added to a's lists using list_add()
Returns a single list with the items of b ' s list added to a ' s lists using list_add ()
function list_merge(a, b) {
      var list = {};
      for (const keyA in a) {
        if (!list.hasOwnProperty(keyA)) {
          list[keyA] = a[keyA];
        }
        b[keyA].forEach(function (card) {
          list_add(list[keyA], card);
        });
      }
      return list;
    }
function list_merge ( a , b ) { var list = { } ; for ( const keyA in a ) { if ( ! list . hasOwnProperty ( keyA ) ) { list [ keyA ] = a [ keyA ] ; } b [ keyA ] . forEach ( function ( card ) { list_add ( list [ keyA ] , card ) ; } ) ; } return list ; }
Returns a single list with the items of b's list added to a's lists using list_add()
Returns a single list with the items of b ' s list added to a ' s lists using list_add ()