shouldAvoidProp = (propsToAvoid, prop) =>
  from(propsToAvoid).some(
    (avoid) =>
      (typeof avoid === 'string' && avoid === prop) ||
      (avoid instanceof RegExp && avoid.test(prop))
  )
@param {Set<string | RegExp>} propsToAvoid - List of properties to exclude
  from scuttling.
@param {string} prop - Property to check.
@returns {boolean} - Whether the property should be avoided or not.