mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +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')
|
||||
* // => 'Fred'
|
||||
*/
|
||||
function capitalize(string) {
|
||||
return upperFirst(string.toLowerCase())
|
||||
}
|
||||
const capitalize = (string) => upperFirst(string.toLowerCase())
|
||||
|
||||
|
||||
export default capitalize
|
||||
|
||||
Reference in New Issue
Block a user