mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Remove toUpper and toLower.
This commit is contained in:
26
toLower.js
26
toLower.js
@@ -1,26 +0,0 @@
|
||||
import toString from './toString.js'
|
||||
|
||||
/**
|
||||
* Converts `string`, as a whole, to lower case just like
|
||||
* [String#toLowerCase](https://mdn.io/toLowerCase).
|
||||
*
|
||||
* @since 4.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to convert.
|
||||
* @returns {string} Returns the lower cased string.
|
||||
* @example
|
||||
*
|
||||
* toLower('--Foo-Bar--')
|
||||
* // => '--foo-bar--'
|
||||
*
|
||||
* toLower('fooBar')
|
||||
* // => 'foobar'
|
||||
*
|
||||
* toLower('__FOO_BAR__')
|
||||
* // => '__foo_bar__'
|
||||
*/
|
||||
function toLower(value) {
|
||||
return toString(value).toLowerCase()
|
||||
}
|
||||
|
||||
export default toLower
|
||||
26
toUpper.js
26
toUpper.js
@@ -1,26 +0,0 @@
|
||||
|
||||
|
||||
/**
|
||||
* Converts `string`, as a whole, to upper case just like
|
||||
* [String#toUpperCase](https://mdn.io/toUpperCase).
|
||||
*
|
||||
* @since 4.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to convert.
|
||||
* @returns {string} Returns the upper cased string.
|
||||
* @example
|
||||
*
|
||||
* toUpper('--foo-bar--')
|
||||
* // => '--FOO-BAR--'
|
||||
*
|
||||
* toUpper('fooBar')
|
||||
* // => 'FOOBAR'
|
||||
*
|
||||
* toUpper('__foo_bar__')
|
||||
* // => '__FOO_BAR__'
|
||||
*/
|
||||
function toUpper(value) {
|
||||
return toString(value).toUpperCase()
|
||||
}
|
||||
|
||||
export default toUpper
|
||||
Reference in New Issue
Block a user