string/toLowerCase.js

  1. import { convertStringMethod } from './convertStringMethod'
  2. /**
  3. * Replaces by former string in lower 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. * @return {Object} Returns the updated object.
  9. * @example toLowerCase({ nested: { a: 'Hello WORLD !' } }, 'fr_fr') // => { nested: { a: 'hello world !' } }
  10. * @see {@link https://mdn.io/String.prototype.toLowerCase|String.prototype.toLowerCase} for more information.
  11. * @since 1.0.0
  12. */
  13. const toLowerCase = convertStringMethod('toLowerCase')
  14. export { toLowerCase }