UNPKG

@ozen-ui/kit

Version:

React component library

12 lines (11 loc) 326 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toKebabCase = void 0; var toKebabCase = function (value) { return value .replace(/([a-z])([A-Z])/g, '$1-$2') .replace(/\s+/g, '-') .replace(/_/g, '-') .toLowerCase(); }; exports.toKebabCase = toKebabCase;