string/toLocaleUpperCase.js

  1. import { convertStringMethod } from './convertStringMethod'
  2. /**
  3. * Replaces by former string in upper case.
  4. * @function
  5. * @memberof string
  6. * @param {Object} object The object to modify.
  7. * @param {Array|string} path The path of the property to set.
  8. * @param {string?} locale Locale.
  9. * @return {Object} Returns the updated object.
  10. * @example toLocaleUpperCase({ nested: { a: 'çA vA Bien ?' } }, 'fr_fr') // => { nested: { a: 'ÇA VA BIEN ?' } }
  11. * @see {@link https://mdn.io/String.prototype.toLocaleUpperCase|String.prototype.toLocaleUpperCase} for more information.
  12. * @since 1.0.0
  13. */
  14. const toLocaleUpperCase = convertStringMethod('toLocaleUpperCase')
  15. export { toLocaleUpperCase }