Function camelToKebab

Converts a camelCase string to a kebab-case string

camelToSnake('helloWorld'); // hello-world
  • Parameters

    • str: string

    Returns string