From d19a581e7af18c4627c35bc1d2c79a15c2ca5aa9 Mon Sep 17 00:00:00 2001 From: Dongho Kim <70563791+mass2527@users.noreply.github.com> Date: Thu, 10 Oct 2024 08:12:35 +0900 Subject: [PATCH] docs(isPlainObject): Update example of korean documentation (#700) --- docs/ko/reference/predicate/isPlainObject.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/ko/reference/predicate/isPlainObject.md b/docs/ko/reference/predicate/isPlainObject.md index bc01d31c9..010e3b98f 100644 --- a/docs/ko/reference/predicate/isPlainObject.md +++ b/docs/ko/reference/predicate/isPlainObject.md @@ -21,11 +21,20 @@ function isPlainObject(value: unknown): value is Record; ## 예시 ```typescript -console.log(isPlainObject({})); // true -console.log(isPlainObject([])); // false -console.log(isPlainObject(null)); // false -console.log(isPlainObject(Object.create(null))); // true -console.log(Buffer.from('hello, world')); // false +isPlainObject({}); // true +isPlainObject([]); // false +isPlainObject(Object.create(null)); // true + +class Foo {} +isPlainObject(new Foo()); // false +isPlainObject(new Date()); // false +isPlainObject(new Set()); // false +isPlainObject(new Map()); // false +isPlainObject(Buffer.from('hello, world')); // false +isPlainObject(Math); // false +isPlainObject(JSON); // false +isPlainObject(null); // false +isPlainObject(1); // false ``` ## 성능 비교