_.toLower

❗️Lodash onlyLowercases a given string.

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

Browser Support for String.prototype.toLowerCase()

ChromeEdgeFirefoxIEOperaSafari
1.0 ✔