UNPKG

@lucide/helpers

Version:

A internal used package with helpers.

8 lines (7 loc) 209 B
/** * Converts string to KebabCase * * @param {string} string * @returns {string} A kebabized string */ export const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();