baseui
Version:
A React Component library implementing the Base design language
14 lines (12 loc) • 391 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.camelToKebab = void 0;
/*
Copyright (c) Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
const camelToKebab = s => s.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
exports.camelToKebab = camelToKebab;