Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isCapitalized

  • isCapitalized(str: string): boolean
  • Checks if the given string is word-capitalized.

    example

    isCapitalized('Foo'); // true isCapitalized('Foo Bar Baz'); // true isCapitalized('Foo bar baz'); // false isCapitalized('foo'); // false

    Parameters

    • str: string

      The string to check.

    Returns boolean

    Whether the string is word-capitalized.

Legend

  • Function

Generated using TypeDoc