Documentation
    Preparing search index...

    Function substringShouldBeCapitalized

    • Checks if a substring (by its given index) of the given string should be capitalized (i.e. if it's at the beginning of the string or after a period).

      Parameters

      • str: string
      • substringIndex: number

      Returns boolean