lib/mongodb/mongodb-core/lib/auth/plain.js
function(authStore, session) {
  var found = false;

  for (var i = 0; i < authStore.length; i++) {
    if (authStore[i].equal(session)) {
      found = true;
      break;
    }
  }

  if (!found) authStore.push(session);
}
function(authStore, session) {
  var found = false;

  for (var i = 0; i < authStore.length; i++) {
    if (authStore[i].equal(session)) {
      found = true;
      break;
    }
  }

  if (!found) authStore.push(session);
}
function ( authStore , session ) { var found = false ; for ( var i = 0 ; i < authStore . length ; i ++ ) { if ( authStore [ i ] . equal ( session ) ) { found = true ; break ; } } if ( ! found ) authStore . push ( session ) ; }
Add to store only if it does not exist
Add to store only if it does not exist