function toKebabCase(str) {
    return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
}
Converts a camelCase string to kebab-case
@param {string} str - The string to convert
@returns {string} The kebab-case string