Options
All
  • Public
  • Public/Protected
  • All
Menu

Module capitalize

Index

References

Functions String

References

Renames and re-exports capitalize

String Functions

  • capitalize(s: string): string
  • Converts the first character of string to upper case and the remaining to lower case.

    since

    5.3.0

    example
    capitalize('FRED')
    // => 'Fred'

    Parameters

    • s: string

      The string to capitalize.

    Returns string

    Returns the capitalized string.