Skip to Content
utilscapitalize

capitalize

See source on Github

Capitalizes the first letter of a given string.

  • @param value - The string to capitalize.
  • @returns The capitalized string.

Example

capitalize('hello world') // 'Hello world'