MCPcopy
hub / github.com/rrweb-io/rrweb / toString

Function toString

packages/plugins/rrweb-plugin-console-record/src/stringify.ts:187–193  ·  view source on GitHub ↗

* limit the toString() result according to option

(_obj: object)

Source from the content-addressed store, hash-verified

185 * limit the toString() result according to option
186 */
187 function toString(_obj: object): string {
188 let str = _obj.toString();
189 if (options.stringLengthLimit && str.length > options.stringLengthLimit) {
190 str = `${str.slice(0, options.stringLengthLimit)}...`;
191 }
192 return str;
193 }
194}

Callers 1

stringifyFunction · 0.70

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected