MCPcopy Create free account
hub / github.com/WhiteSevs/TamperMonkeyScript / toStr

Function toStr

script-components/components/src/utils/CommonUtil.ts:401–411  ·  view source on GitHub ↗

* 使用JSON.stringify转字符串 * * 额外处理:`undefined` * * 自动格式化2个空格缩进 * @param data 需要转换的数据 * @param space 缩进空格数(默认:2)

(data: any, space: number = 2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

stringifyMethod · 0.80

Tested by

no test coverage detected