lib/topologies/shared.js
function resolveClusterTime(topology, $clusterTime) {
  if (topology.clusterTime == null) {
    topology.clusterTime = $clusterTime;
  } else {
    if ($clusterTime.clusterTime.greaterThan(topology.clusterTime.clusterTime)) {
      topology.clusterTime = $clusterTime;
    }
  }
}
function resolveClusterTime(topology, $clusterTime) {
  if (topology.clusterTime == null) {
    topology.clusterTime = $clusterTime;
  } else {
    if ($clusterTime.clusterTime.greaterThan(topology.clusterTime.clusterTime)) {
      topology.clusterTime = $clusterTime;
    }
  }
}
function resolveClusterTime ( topology , $clusterTime ) { if ( topology . clusterTime == null ) { topology . clusterTime = $clusterTime ; } else { if ( $clusterTime . clusterTime . greaterThan ( topology . clusterTime . clusterTime ) ) { topology . clusterTime = $clusterTime ; } } }
Shared function to determine clusterTime for a given topology

@param {*} topology
@param {*} clusterTime
Shared function to determine clusterTime for a given topology