From 5d73127d1464c9bcf0008901c6b552ddf6bc354e Mon Sep 17 00:00:00 2001 From: lee0802-120 Date: Thu, 16 Jul 2026 13:20:54 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=A4=80=EC=84=9D=20=EC=A0=9C?= =?UTF-8?q?=EC=B6=9C=ED=95=A9=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../solution.ts" | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git "a/level-00/0.1-\354\236\220\353\243\214\355\230\225-\355\203\200\354\236\205\355\214\220\353\263\204/solution.ts" "b/level-00/0.1-\354\236\220\353\243\214\355\230\225-\355\203\200\354\236\205\355\214\220\353\263\204/solution.ts" index 2764343..b0cc51e 100644 --- "a/level-00/0.1-\354\236\220\353\243\214\355\230\225-\355\203\200\354\236\205\355\214\220\353\263\204/solution.ts" +++ "b/level-00/0.1-\354\236\220\353\243\214\355\230\225-\355\203\200\354\236\205\355\214\220\353\263\204/solution.ts" @@ -18,6 +18,8 @@ export type TypeName = | "undefined"; export function solution(value: unknown): TypeName { - // TODO: 구현하세요 - throw new Error("아직 구현되지 않았습니다"); + if (value === null) return "null"; + else if (Array.isArray(value)) return "array"; + + return typeof value as TypeName; }