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

Function join

plugins/shopify/skills/shopify-partner/scripts/validate.mjs:4165–4168  ·  view source on GitHub ↗
(maybeArray, separator = "")

Source from the content-addressed store, hash-verified

4163 }
4164 };
4165 function join(maybeArray, separator = "") {
4166 var _maybeArray$filter$jo;
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 }

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected