|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
477 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Checks if a value is an empty plain object.
|
|---|
| 3 | *
|
|---|
| 4 | * @param {unknown} value - The value to check.
|
|---|
| 5 | * @returns {value is Record<PropertyKey, never>} - True if the value is an empty plain object, otherwise false.
|
|---|
| 6 | *
|
|---|
| 7 | * @example
|
|---|
| 8 | * isEmptyObject({}); // true
|
|---|
| 9 | * isEmptyObject({ a: 1 }); // false
|
|---|
| 10 | * isEmptyObject([]); // false
|
|---|
| 11 | * isEmptyObject(null); // false
|
|---|
| 12 | */
|
|---|
| 13 | declare function isEmptyObject(value: unknown): value is Record<PropertyKey, never>;
|
|---|
| 14 |
|
|---|
| 15 | export { isEmptyObject };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.