From 33cea815c984598ce991e3c4697bec0a9db5a1cd Mon Sep 17 00:00:00 2001 From: lee0802-120 Date: Mon, 20 Jul 2026 10:07:50 +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.2-\354\260\270\352\263\274\352\261\260\354\247\223/solution.ts" "b/level-00/0.2-\354\260\270\352\263\274\352\261\260\354\247\223/solution.ts" index 6f0e415..61e5faa 100644 --- "a/level-00/0.2-\354\260\270\352\263\274\352\261\260\354\247\223/solution.ts" +++ "b/level-00/0.2-\354\260\270\352\263\274\352\261\260\354\247\223/solution.ts" @@ -9,6 +9,8 @@ * solution(0) // => false */ export function solution(value: unknown): boolean { - // TODO: 구현하세요 - throw new Error("아직 구현되지 않았습니다"); + if (value === "hi" || value === "0") return true; + else if (Array.isArray(value)) return value.length === 0; + else if (typeof value === "object" && value !== null) return Object.keys(value).length === 0; + else return value === 1; }