@wpazderski/js-utils
    Preparing search index...

    Utility class for string operations.

    Index

    Constructors

    Methods

    • Converts a camelCase string to a kebab-case string.

      Type Parameters

      • T extends string

      Parameters

      • str: T

        The input camelCase string.

      Returns T

      The converted kebab-case string.

    • Converts a kebab-case string to a camelCase string.

      Type Parameters

      • T extends string

      Parameters

      • str: T

        The input kebab-case string.

      Returns T

      The converted camelCase string.

    • Converts a kebab-case string to a PascalCase string.

      Type Parameters

      • T extends string

      Parameters

      • str: T

        The input kebab-case string.

      Returns T

      The converted PascalCase string.

    • Converts the first letter of a string to lowercase.

      Type Parameters

      • T extends string

      Parameters

      • str: T

        The input string.

      Returns T

      The input string with the first letter converted to lowercase.

    • Converts a PascalCase string to a kebab-case string.

      Type Parameters

      • T extends string

      Parameters

      • str: T

        The input PascalCase string.

      Returns T

      The converted kebab-case string.

    • Converts the first letter of a string to uppercase.

      Type Parameters

      • T extends string

      Parameters

      • str: T

        The input string.

      Returns T

      The input string with the first letter converted to uppercase.