HF RL Explorer

Convert Hyphens to camelCase in JavaScript

Convert Hyphens to camelCase in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). Write a JavaScript function that converts hyphen-separated strings (kebab-case) to camelCase. The function should handle any number of hyphens in the input string.

The task

Write a JavaScript function that converts hyphen-separated strings (kebab-case) to camelCase. The function should handle any number of hyphens in the input string.

Part of PrimeIntellect/Terminal-Lego-15k.