function compileTrust(value) {
  if (typeof value === "function") return value;
  if (value === true) {
    // Support plain true / false
    return function () {
      return true;
    };
  }
  if (typeof value === "number") {
    // Support trusting hop count
    return function (_, i) {
      return i < value;
    };
  }
  if (typeof value === "string") {
    // Support comma-separated values
    value = value.split(/ *, */);
  }
  return compile(value || []);
}
/**
 * Compile "proxy trust" value to function.
 *
 * @param  {Boolean|String|Number|Array|Function} value
 * @return {Function}
 * @private
 */
Compile "proxy trust" value to function.
Compile " proxy trust " value to function .
function compileTrust(value) {
  if (typeof value === "function") return value;
  if (value === true) {
    return function () {
      return true;
    };
  }
  if (typeof value === "number") {
    return function (_, i) {
      return i < value;
    };
  }
  if (typeof value === "string") {
    value = value.split(/ *, */);
  }
  return compile(value || []);
}
function compileTrust ( value ) { if ( typeof value === "function" ) return value ; if ( value === true ) { return function ( ) { return true ; } ; } if ( typeof value === "number" ) { return function ( _ , i ) { return i < value ; } ; } if ( typeof value === "string" ) { value = value . split ( /  *, * / ) ; } return compile ( value || [ ] ) ; }
Compile "proxy trust" value to function.
Compile " proxy trust " value to function .
// Support plain true / false // Support trusting hop count // Support comma-separated values