MCPcopy Index your code
hub / github.com/bugy/script-server / isEmptyObject

Function isEmptyObject

web-src/src/common/utils/common.js:53–65  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

51}
52
53export function isEmptyObject(obj) {
54 if (isNull(obj)) {
55 return true;
56 }
57
58 for (var prop in obj) {
59 if (obj.hasOwnProperty(prop)) {
60 return false;
61 }
62 }
63
64 return true;
65}
66
67export function addClass(element, clazz) {
68 if (!hasClass(element, clazz)) {

Callers 4

selectScriptByHashFunction · 0.90
initFromParametersFunction · 0.90
reconnectFunction · 0.90
isEmptyValueFunction · 0.85

Calls 1

isNullFunction · 0.85

Tested by

no test coverage detected