From 0e0a31fc9ea4380b3d623d631f33d7f3362171cf Mon Sep 17 00:00:00 2001 From: Christian Kaisermann Date: Tue, 21 Jan 2020 10:35:46 -0300 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20remove=20unused=20metho?= =?UTF-8?q?ds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/runtime/includes/utils.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/runtime/includes/utils.ts b/src/runtime/includes/utils.ts index 808965b..5b70ea6 100644 --- a/src/runtime/includes/utils.ts +++ b/src/runtime/includes/utils.ts @@ -1,21 +1,5 @@ import { GetClientLocaleOptions } from '../types' -export function capital(str: string) { - return str.replace(/(^|\s)\S/, l => l.toLocaleUpperCase()) -} - -export function title(str: string) { - return str.replace(/(^|\s)\S/g, l => l.toLocaleUpperCase()) -} - -export function upper(str: string) { - return str.toLocaleUpperCase() -} - -export function lower(str: string) { - return str.toLocaleLowerCase() -} - // could use a reduce, but a simple for-in has less footprint export const flatObj = (obj: Record, prefix = '') => { const flatted: Record = {}