Function snakeToCamel

  • Converts a snake_case string to a camelCase string

    Parameters

    • str: string

    Returns string

    snakeToCamel('hello_world'); // helloWorld
    snakeToCamel('HELLO_WORLD'); // helloWorld