@trashpanda001/helpers
    Preparing search index...

    Function capitalize

    • Convert first character in a string to uppercase, leaving the rest untouched.

      Parameters

      • string: string

        the string to capitalize

      Returns string

      the string with the first character capitalized

      import { capitalize } from "@trashpanda001/helpers/string"

      capitalize("hello, world.")
      // "Hello, world."