From a625795e12ee9ffd4474a4afad24a1ea05155795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=9B=90=EB=B9=88?= Date: Mon, 8 Apr 2024 00:21:33 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A3=BC=EC=84=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cn/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cn/index.ts b/src/cn/index.ts index 6941441..1d7c9c9 100644 --- a/src/cn/index.ts +++ b/src/cn/index.ts @@ -2,6 +2,7 @@ interface Classname { [key: string]: boolean; } +/** 여러 개의 className을 합치는 함수 */ export function cn(classes: Classname) { return Object.entries(classes) .filter(([, value]) => value)