Basic usage

Given a string returns it with the first letter upper cased and all other letters lower cased.

import { capitalize } from 'radash'

capitalize('green fish blue FISH') // => Green fish blue fish

Testing

This _.capitalize function is 100% covered by tests. See them and contribute at GitHub.

Source

See the source for _.capitalize on GitHub.