Skip to content

Commit

Permalink
docs(isPlainObject): Update example of korean documentation (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
mass2527 authored Oct 9, 2024
1 parent c95d40f commit d19a581
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions docs/ko/reference/predicate/isPlainObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,20 @@ function isPlainObject(value: unknown): value is Record<PropertyKey, any>;
## 예시

```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
```

## 성능 비교
Expand Down

0 comments on commit d19a581

Please sign in to comment.