Skip to content

capitalize

Convert a string to a capitalized format

152 bytes

Usage

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

import * as _ from 'radashi'
_.capitalize('green fish blue FISH') // => Green fish blue fish