@zarpay/zar-cdk-lib - v0.21.0
    Preparing search index...

    Function cap

    • Capitalizes the first character of a string.

      Parameters

      • s: string

        The input string to capitalize.

      Returns string

      The input string with its first character converted to uppercase.

      cap("hello"); // "Hello"
      cap("world"); // "World"