diff --git a/utils/string-utils.class.ts b/utils/string-utils.class.ts index fc968888..c6273c73 100644 --- a/utils/string-utils.class.ts +++ b/utils/string-utils.class.ts @@ -136,6 +136,10 @@ export class StringUtils{ const sliced = String(mystr).substr(0, size); return sliced + (String(mystr).length > size ? '...' : ''); } + + public static capitalize(value: string): string { + return value.charAt(0).toUpperCase() + value.slice(1); + } public static URLSegmentsToPath(segments: UrlSegment[]): string { let path = '';