MCPcopy Create free account
hub / github.com/openai/plugins / wrap

Function wrap

plugins/shopify/skills/shopify-payments-apps/scripts/validate.mjs:4172–4174  ·  view source on GitHub ↗
(start, maybeString, end = "")

Source from the content-addressed store, hash-verified

4170 return wrap("{\n", indent(join(array, "\n")), "\n}");
4171 }
4172 function wrap(start, maybeString, end = "") {
4173 return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
4174 }
4175 function indent(str) {
4176 return wrap(" ", str.replace(/\n/g, "\n "));
4177 }

Callers 4

leaveFunction · 0.70
blockFunction · 0.70
indentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected