Convert API

toLower()

Converts the passed arguments to "lowercase" 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:
toLower('fontSIZE');
toLower(['fontSIZE']);
// 'fontsize'

toLower('BORDER-RADIUS', 'border_COLOR', 'borderStyle');
toLower(['BORDER-RADIUS', 'border_COLOR', 'borderStyle']);
toLower('BORDER-RADIUS', ['border_COLOR', 'borderStyle']);
// ['border-radius', 'border_color', 'borderstyle']