source:
node_modules/es-toolkit/dist/predicate/isEmptyObject.mjs@
ba17441
| Last change on this file since ba17441 was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 183 bytes | |
| Line | |
|---|---|
| 1 | import { isPlainObject } from './isPlainObject.mjs'; |
| 2 | |
| 3 | function isEmptyObject(value) { |
| 4 | return isPlainObject(value) && Object.keys(value).length === 0; |
| 5 | } |
| 6 | |
| 7 | export { isEmptyObject }; |
Note:
See TracBrowser
for help on using the repository browser.
