From 25ec5a24ab025e3ccc0082ce37946e9b67458bf0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 12 Sep 2018 06:33:02 +0900 Subject: [PATCH] Add toLowerCase --- src/prelude/string.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/prelude/string.ts b/src/prelude/string.ts index 8855adb905..cae776bc3d 100644 --- a/src/prelude/string.ts +++ b/src/prelude/string.ts @@ -1,7 +1,11 @@ export function capitalize(s: string): string { - return toUpperCase(s.charAt(0)) + s.slice(1).toLowerCase(); + return toUpperCase(s.charAt(0)) + toLowerCase(s.slice(1)); } export function toUpperCase(s: string): string { return s.toUpperCase(); } + +export function toLowerCase(s: string): string { + return s.toLowerCase(); +}