@newdash/newdash
Version:
javascript/typescript utility library
24 lines (23 loc) • 554 B
TypeScript
/**
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
*
* @since 5.5.0
* @category String
* @param s The string to convert.
* @returns Returns the camel cased string.
* @see [[lowerCase]], [[kebabCase]], [[snakeCase]], [[startCase]], [[upperCase]], [[upperFirst]]
* @example
*
* ```js
* camelCase('Foo Bar')
* // => 'fooBar'
*
* camelCase('--foo-bar--')
* // => 'fooBar'
*
* camelCase('__FOO_BAR__')
* // => 'fooBar'
* ```
*/
export declare function camelCase(s: string): string;
export default camelCase;