code: function endpointMatchDesiredInterface(endpoint) {
      var interfaceToUse = 'public';
      if (options.useInternal === true) {
        interfaceToUse = 'internal';
      } else if (options.useAdmin === true) {
        interfaceToUse = 'admin';
      }
      return endpoint['interface'] === interfaceToUse;
    }
docs: endpointMatchDesiredInterface
  
  @description determine if the endpoint interface matches the desired interface
  @param {object} endpoint
  @returns {Boolean}