text: /* eslint-disable jsdoc/no-undefined-types */
  /**
   * Enforce that a value exists in the provided [Enum](docs/Enum.md).
   *
   * @example
   * ``` javascript
   * import { enforce, Enum } from 'type-enforcer';
   *
   * const values = new Enum({
   *     a: 'item a',
   *     b: 'item b'
   * });
   *
   * enforce.enum(values.a, values, values.b);
   * // => 'item a'
   *
   * enforce.enum(values.c, values, values.b);
   * // => 'item b'
   * ```
   *
   * @function enforce.enum
   * @alias enforceEnum
   *
   * @param {*} value - The value to enforce.
   * @param {Enum} enumerable - A valid enum.
   * @param {string} alt - Returned if the value is not the correct type.
   *
   * @returns {string}
   */
  export default (value, enumerable, alt) => (enumerable !== undefined && enumerable.has(value)) ? value : alt;
  