MCPcopy Index your code
hub / github.com/feiyu563/PrometheusAlert / isObjectEmpty

Function isObjectEmpty

static/plugins/chart.js/Chart.bundle.js:14739–14751  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

14737 }
14738
14739 function isObjectEmpty(obj) {
14740 if (Object.getOwnPropertyNames) {
14741 return (Object.getOwnPropertyNames(obj).length === 0);
14742 } else {
14743 var k;
14744 for (k in obj) {
14745 if (obj.hasOwnProperty(k)) {
14746 return false;
14747 }
14748 }
14749 return true;
14750 }
14751 }
14752
14753 function isUndefined(input) {
14754 return input === void 0;

Callers 1

createLocalOrUTCFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected