src/config.js
function expectKey(options, key, type) {
  if (key in options) {
    if (typeof options[key] === type) {
      return true
    }
    // eslint-disable-next-line no-console
    console.warn(`Ignoring options key '${key}' - ` +
      `expected type '${type}', received '${typeof options[key]}'`)
  }
  return false
}
function expectKey(options, key, type) {
  if (key in options) {
    if (typeof options[key] === type) {
      return true
    }
    // eslint-disable-next-line no-console
    console.warn(`Ignoring options key '${key}' - ` +
      `expected type '${type}', received '${typeof options[key]}'`)
  }
  return false
}
function expectKey ( options , key , type ) { if ( key in options ) { if ( typeof options [ key ] === type ) { return true } // eslint-disable-next-line no-console console . warn ( ` ${ key } ` + ` ${ type } ${ typeof options [ key ] } ` ) } return false }
check whether options contain given key and that it is the same type as in cfg
check whether options contain given key and that it is the same type as in cfg