MCPcopy Create free account
hub / github.com/chieapp/chie / isEmptyObject

Function isEmptyObject

src/util/object-utils.ts:36–38  ·  view source on GitHub ↗
(obj: object)

Source from the content-addressed store, hash-verified

34
35// Return true if |obj| is not an object or it has no properties.
36export function isEmptyObject(obj: object) {
37 return !obj || Object.keys(obj).length == 0;
38}
39
40// Do a shadow compare of |a| and |b|'s properties.
41export function shallowEqual(a: object, b: object) {

Callers 3

serializeMethod · 0.90
serializeMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected