MCPcopy Create free account
hub / github.com/fluid-dev/hexo-theme-fluid / isNotEmptyObject

Function isNotEmptyObject

scripts/utils/object.js:7–9  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

5};
6
7const isNotEmptyObject = (obj) => {
8 return obj && typeof obj === 'object' && Object.getOwnPropertyNames(obj).length !== 0;
9};
10
11const isEmptyObject = (obj) => {
12 return !isNotEmptyObject(obj);

Callers 2

isEmptyObjectFunction · 0.85
merge-configs.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected