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

Function block

plugins/shopify/skills/shopify-functions/scripts/validate.mjs:4169–4171  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

4167 return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
4168 }
4169 function block(array) {
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 }

Calls 3

wrapFunction · 0.70
indentFunction · 0.70
joinFunction · 0.70

Tested by

no test coverage detected