Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Latest commit

 

History

History
24 lines (16 loc) · 340 Bytes

capitalize.md

File metadata and controls

24 lines (16 loc) · 340 Bytes

strings/capitalize

Put the first letter of a string in capital

function capitalize(str: string)

Args

str:string
The string to trim.

Returns

The capitalized string.

Examples

import { capitalize } from '@deskpro/js-utils/dist/strings';

console.log(capitalize('abcdefg')); // Outputs Abcdefg