addon/server.js
function isOption(option) {
  if (!option || typeof option !== 'object') {
    return false;
  }

  let allOptions = Object.keys(defaultRouteOptions);
  let optionKeys = Object.keys(option);
  for (let i = 0; i < optionKeys.length; i++) {
    let key = optionKeys[i];
    if (allOptions.indexOf(key) > -1) {
      return true;
    }
  }
  return false;
}
function isOption(option) {
  if (!option || typeof option !== 'object') {
    return false;
  }

  let allOptions = Object.keys(defaultRouteOptions);
  let optionKeys = Object.keys(option);
  for (let i = 0; i < optionKeys.length; i++) {
    let key = optionKeys[i];
    if (allOptions.indexOf(key) > -1) {
      return true;
    }
  }
  return false;
}
function isOption ( option ) { if ( ! option || typeof option !== 'object' ) { return false ; } let allOptions = Object . keys ( defaultRouteOptions ) ; let optionKeys = Object . keys ( option ) ; for ( let i = 0 ; i < optionKeys . length ; i ++ ) { let key = optionKeys [ i ] ; if ( allOptions . indexOf ( key ) > - 1 ) { return true ; } } return false ; }
Determine if the object contains a valid option.

@method isOption
@param {Object} option An object with one option value pair.
@return {Boolean} True if option is a valid option, false otherwise.
@private
Determine if the object contains a valid option .