snakeToCamel

Converts a snake-case string to a camelCase string.

Parameters

  • str {string}: The snake_case string to convert.

Returns

  • {string}: The converted camelCase string.

const result1 = snakeToCamel('snake_case_string');
console.log(result1); // Output: snakeCaseString

Last updated