MCPcopy Create free account
hub / github.com/datalust/seq-logging / isValue

Function isValue

seq_logger.js:294–298  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

292};
293
294const isValue = (obj) => {
295 if (!obj) return true;
296 if (typeof obj !== "object") return true;
297 return false;
298};
299
300const removeCirculars = (obj, branch = new Map(), path = "root") => {
301 if (isValue(obj)) return obj;

Callers 1

removeCircularsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected