diagnostics.js
function use(adapter) {
  if (~adapters.indexOf(adapter)) return false;

  adapters.push(adapter);
  return true;
}
function use(adapter) {
  if (~adapters.indexOf(adapter)) return false;

  adapters.push(adapter);
  return true;
}
function use ( adapter ) { if ( ~ adapters . indexOf ( adapter ) ) return false ; adapters . push ( adapter ) ; return true ; }
Register a new adapter that will used to find environments.

@param {Function} adapter A function that will return the possible env.
@returns {Boolean} Indication of a successful add.
@public
Register a new adapter that will used to find environments .