Skip to main content

capitalize

Capitalize the first word of the string

API

function capitalize(str: string): string;

Usage

import { capitalize } from '@feedzai/js-utilities';

capitalize('hello')
//-> 'Hello'

capitalize('va va voom')
//-> 'Va va voom'