function requiredProp(fnName, propName) {
  // eslint-disable-next-line no-console
  console.error(`The property "${propName}" is required in "${fnName}"`)
}
Throws a helpful error message for required properties. Useful
to be used as a default in destructuring or object params.
@param {String} fnName the function name
@param {String} propName the prop name