_.toUpper

❗️Lodash onlyUppercases a given string.

  1. // Lodash
  2. var result = _.toUpper('foobar')
  3. console.log(result)
  4. // output: 'FOOBAR'
  5.  
  6. // Native
  7. var result = 'foobar'.toUpperCase()
  8. console.log(result)
  9. // output: 'FOOBAR'

Browser Support for String.prototype.toUpperCase()

ChromeEdgeFirefoxIEOperaSafari
1.0 ✔