MCPcopy Create free account
hub / github.com/zxlie/FeHelper / isJSONContainer

Function isJSONContainer

apps/json-format/json-auto-utils.js:225–230  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

223 }
224
225 function isJSONContainer(value) {
226 if (typeof value !== 'object' || value === null) return false;
227 if (!Array.isArray(value) && Object.prototype.toString.call(value) !== '[object Object]') return false;
228 if (isBigNumberLike(value) && Object.keys(value).length === 3) return false;
229 return true;
230 }
231
232 function deepParseJSONStrings(obj) {
233 if (Array.isArray(obj)) {

Callers 3

deepParseJSONStringsFunction · 0.85
parseJSONLikeFunction · 0.85

Calls 1

isBigNumberLikeFunction · 0.70

Tested by

no test coverage detected