Converts a snake-case string to a camelCase string.
snake-case
camelCase
Parameters
str {string}: The snake_case string to convert.
str
snake_case
Returns
{string}: The converted camelCase string.
const result1 = snakeToCamel('snake_case_string'); console.log(result1); // Output: snakeCaseString
Last updated 1 year ago