MCPcopy Create free account
hub / github.com/markedjs/marked / propsToString

Function propsToString

test/rules.js:32–46  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

30};
31
32function propsToString(obj) {
33 if (obj === null) {
34 return null;
35 }
36 if (obj.constructor.name === 'Object') {
37 if (obj.exec?.name === 'noopTest') {
38 return null;
39 }
40 for (const prop in obj) {
41 obj[prop] = propsToString(obj[prop]);
42 }
43 return obj;
44 }
45 return obj.toString();
46}
47
48let rulesObj = {};
49if (process.argv.length > 2) {

Callers 1

rules.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected