Skip to content

Commit

Permalink
Add one example (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored Jun 14, 2022
1 parent a8de2a1 commit db81db9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ isPlainObject([1, 2, 3]);
class Unicorn {}
isPlainObject(new Unicorn());
//=> false
isPlainObject(Math);
//=> false
```
*/
export default function isPlainObject<Value>(value: unknown): value is Record<PropertyKey, Value>;
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ isPlainObject([1, 2, 3]);
class Unicorn {}
isPlainObject(new Unicorn());
//=> false

isPlainObject(Math);
//=> false
```

## Related
Expand Down

0 comments on commit db81db9

Please sign in to comment.