Function cancerPercentage

  • Gives the percentage of cancerous characters in a string.

    Returns

    percentage of cancerous characters in the string

    Parameters

    • str: string

      string to check

    • ignoreSpace: boolean = false

      whether to ignore spaces

    Returns number

Generated using TypeDoc