function syncingCallback (tableBeingUpdated, callback) {
    var callCount = 0;
    var lengthOfTable = Object.keys(tableBeingUpdated).length;

    var callbackForUser = function() {
        if (++callCount == lengthOfTable) {
            callback();
        }
    }

    return callback ? callbackForUser : undefined;
}
/**
 * This function supplies a callback which can be called
 * N times, where N is the number of elements in 
 * tableBeingUpdated. Once this supplied callback has been
 * called these N times it will call the passed in callback
 */
This function supplies a callback which can be called
N times, where N is the number of elements in
tableBeingUpdated. Once this supplied callback has been
called these N times it will call the passed in callback
This function supplies a callback which can be called N times where N is the number of elements in tableBeingUpdated . Once this supplied callback has been called these N times it will call the passed in callback
function syncingCallback (tableBeingUpdated, callback) {
    var callCount = 0;
    var lengthOfTable = Object.keys(tableBeingUpdated).length;
    var callbackForUser = function() {
        if (++callCount == lengthOfTable) {
            callback();
        }
    }
    return callback ? callbackForUser : undefined;
}
function syncingCallback ( tableBeingUpdated , callback ) { var callCount = 0 ; var lengthOfTable = Object . keys ( tableBeingUpdated ) . length ; var callbackForUser = function ( ) { if ( ++ callCount == lengthOfTable ) { callback ( ) ; } } return callback ? callbackForUser : undefined ; }
This function supplies a callback which can be called
 N times, where N is the number of elements in
 tableBeingUpdated.
This function supplies a callback which can be called N times where N is the number of elements in tableBeingUpdated .