@sandlada/vue-mdc
Version:

15 lines (14 loc) • 350 B
JavaScript
/**
* @license
* Copyright 2024 glare-labs & bre97-web
* SPDX-License-Identifier: MIT
*/
function toKebabCase(str) {
return str.split("").map((letter, idx) => {
return letter.toUpperCase() === letter ? `${idx !== 0 ? "-" : ""}${letter.toLowerCase()}` : letter;
}).join("");
}
export {
toKebabCase
};
//# sourceMappingURL=strings.js.map