Function formatRh

  • 处理 rh 血型

    Parameters

    • input: string

      输入值

    • Optionaloptions: {
          default?: string | number | boolean;
          format?: [string | number | boolean, string | number | boolean];
          negative?: string[];
          positive?: string[];
      }

      处理配置

      • Optionaldefault?: string | number | boolean
      • Optionalformat?: [string | number | boolean, string | number | boolean]
      • Optionalnegative?: string[]
      • Optionalpositive?: string[]

    Returns string | boolean | number

    formatRh('**d**'); /// '阴性'
    formatRh('**d**', { format: [true, false], default: false }); /// true