MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / truncate

Function truncate

debug-plugin/content-script.js:66–69  ·  view source on GitHub ↗
(str, len)

Source from the content-addressed store, hash-verified

64 }
65
66 function truncate(str, len) {
67 if (str.length <= len) return str;
68 return str.slice(0, len) + "…";
69 }
70
71 let hdbCounter = 0;
72

Callers 1

prettyPrintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected