Search Docs
toCamelCase
Converts the str to camelCase, where the first letter of each word after the first is capitalized.
str
import { toCamelCase } from 'funtool/string' toCamelCase('hello_world'); // ✅ 'helloWorld' toCamelCase('hello-world'); // ✅ 'helloWorld' toCamelCase('api_version'); // ✅ 'apiVersion' toCamelCase('API_version'); // ✅ 'apiVersion' toCamelCase('my-xml-parser'); // ✅ 'myXmlParser'
function toCamelCase(str: string): string
string