Convert API

toUpper()

Converts the passed arguments to "UPPERCASE" 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:
toUpper('fontSize');
toUpper(['fontSize']);
// 'FONTSIZE'

toUpper('border-radius', 'border_color', 'borderStyle');
toUpper(['border-radius', 'border_color', 'borderStyle']);
toUpper('border-radius', ['border_color', 'borderStyle']);
// ['BORDER-RADIUS', 'BORDER_COLOR', 'BORDERSTYLE']