MCPcopy Create free account
hub / github.com/ClearURLs/Addon / isEmpty

Function isEmpty

core_js/tools.js:49–51  ·  view source on GitHub ↗

* Check if an object is empty. * @param {Object} obj * @return {Boolean}

(obj)

Source from the content-addressed store, hash-verified

47 * @return {Boolean}
48 */
49function isEmpty(obj) {
50 return (Object.getOwnPropertyNames(obj).length === 0);
51}
52
53/**
54 * Translate a string with the i18n API.

Callers 1

initStorageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected