From 941b87d4688dad0898831e0c396423dc1606f094 Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Mon, 24 May 2021 16:21:26 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20`ucFirst`=20helper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/helpers.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/helpers.ts diff --git a/src/helpers.ts b/src/helpers.ts new file mode 100644 index 0000000..776ab63 --- /dev/null +++ b/src/helpers.ts @@ -0,0 +1,3 @@ +export function ucFirst(val: string) { + return val.charAt(0).toUpperCase() + val.slice(1); +}