Convert API
toCamel()
Converts the passed arguments to "camelCase" format.
- Accepts arguments as strings and arrays of strings.
Each value is seen as a new argument. - Returns the converted string if a single argument is passed and an array of strings if multiple arguments are passed.
Example:
toCamel('font-size');
// 'fontSize'
toCamel(['font-size']);
// 'fontSize'
toCamel('border_radius', 'border-color', 'borderStyle');
// ['borderRadius', 'borderColor', 'borderStyle']
toCamel(['border-radius', 'border_color']);
// ['borderRadius', 'borderColor']
toCamel('font_size', ['border-radius', 'border-color']);
// ['fontSize', 'borderRadius', 'borderColor']
toCamel('font-size: 10px, border_radius: 10px');
// 'fontSize: 10px, borderRadius: 10px'