MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / isObjectEmpty

Function isObjectEmpty

tests/test_code/js/moment/moment.js:45–57  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

43 }
44
45 function isObjectEmpty(obj) {
46 if (Object.getOwnPropertyNames) {
47 return Object.getOwnPropertyNames(obj).length === 0;
48 } else {
49 var k;
50 for (k in obj) {
51 if (hasOwnProp(obj, k)) {
52 return false;
53 }
54 }
55 return true;
56 }
57 }
58
59 function isUndefined(input) {
60 return input === void 0;

Callers 3

createLocalOrUTCFunction · 0.85
isMomentInputObjectFunction · 0.85
isCalendarSpecFunction · 0.85

Calls 1

hasOwnPropFunction · 0.85

Tested by

no test coverage detected