MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / isEmptyObject

Function isEmptyObject

docs/static/js/bulma-carousel.js:240–247  ·  view source on GitHub ↗
(unknown)

Source from the content-addressed store, hash-verified

238 return (typeof unknown === 'function' || (typeof unknown === 'undefined' ? 'undefined' : _typeof(unknown)) === 'object' && !!unknown) && !Array.isArray(unknown);
239};
240var isEmptyObject = function isEmptyObject(unknown) {
241 for (var name in unknown) {
242 if (unknown.hasOwnProperty(name)) {
243 return false;
244 }
245 }
246 return true;
247};
248
249var isNode = function isNode(unknown) {
250 return !!(unknown && unknown.nodeType === HTMLElement | SVGElement);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected