MCPcopy
hub / github.com/di-sukharev/opencommit / isURLSearchParams2

Function isURLSearchParams2

out/cli.cjs:6320–6325  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

6318 return convert(buffer, "UTF-8", charset).toString();
6319 }
6320 function isURLSearchParams2(obj) {
6321 if (typeof obj !== "object" || typeof obj.append !== "function" || typeof obj.delete !== "function" || typeof obj.get !== "function" || typeof obj.getAll !== "function" || typeof obj.has !== "function" || typeof obj.set !== "function") {
6322 return false;
6323 }
6324 return obj.constructor.name === "URLSearchParams" || Object.prototype.toString.call(obj) === "[object URLSearchParams]" || typeof obj.sort === "function";
6325 }
6326 function isBlob4(obj) {
6327 return typeof obj === "object" && typeof obj.arrayBuffer === "function" && typeof obj.type === "string" && typeof obj.stream === "function" && typeof obj.constructor === "function" && typeof obj.constructor.name === "string" && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]);
6328 }

Callers 2

BodyFunction · 0.85
extractContentTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…