UNPKG

tdesign-vue

Version:
40 lines (35 loc) 889 B
/** * tdesign v1.11.2 * (c) 2025 tdesign * @license MIT */ 'use strict'; var capitalize = require('./dep-eceed11d.js'); var _createCompounder = require('./dep-6478392e.js'); /** * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the camel cased string. * @example * * _.camelCase('Foo Bar'); * // => 'fooBar' * * _.camelCase('--foo-bar--'); * // => 'fooBar' * * _.camelCase('__FOO_BAR__'); * // => 'fooBar' */ var camelCase = _createCompounder.createCompounder(function (result, word, index) { word = word.toLowerCase(); return result + (index ? capitalize.capitalize(word) : word); }); var camelCase$1 = camelCase; exports.camelCase = camelCase$1; //# sourceMappingURL=dep-7c854ec6.js.map