mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
converted to fat arrow function (#4059)
This commit is contained in:
committed by
John-David Dalton
parent
c4075c18cb
commit
1e939919c0
@@ -13,8 +13,7 @@ import upperFirst from './upperFirst.js'
|
|||||||
* capitalize('FRED')
|
* capitalize('FRED')
|
||||||
* // => 'Fred'
|
* // => 'Fred'
|
||||||
*/
|
*/
|
||||||
function capitalize(string) {
|
const capitalize = (string) => upperFirst(string.toLowerCase())
|
||||||
return upperFirst(string.toLowerCase())
|
|
||||||
}
|
|
||||||
|
|
||||||
export default capitalize
|
export default capitalize
|
||||||
|
|||||||
Reference in New Issue
Block a user