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

Function _isDeepParsable

apps/json-format/json-utils.js:286–292  ·  view source on GitHub ↗
(parsed)

Source from the content-addressed store, hash-verified

284}
285
286function _isDeepParsable(parsed) {
287 if (typeof parsed !== 'object' || parsed === null) return false;
288 if (!Array.isArray(parsed) && Object.prototype.toString.call(parsed) !== '[object Object]') return false;
289 // 排除 BigNumber duck-type {s, e, c}
290 if (isBigNumberLike(parsed) && Object.keys(parsed).length === 3) return false;
291 return true;
292}
293
294// ─── Unicode 编解码 ─────────────────────────────────────────
295export function uniEncode(str) {

Callers 2

deepParseJSONStringsFunction · 0.85

Calls 1

isBigNumberLikeFunction · 0.70

Tested by

no test coverage detected