MCPcopy Create free account
hub / github.com/Bytez-com/docs / updateTemplateIds

Function updateTemplateIds

docs/scripts/generatePages/index.js:397–404  ·  view source on GitHub ↗
(string, replacements)

Source from the content-addressed store, hash-verified

395}
396
397function updateTemplateIds(string, replacements) {
398 let updatedString = string;
399 for (const { tokenId, replaceWith } of replacements) {
400 updatedString = updatedString.replaceAll(tokenId, replaceWith);
401 }
402
403 return updatedString;
404}
405
406function paramsExist(params) {
407 return params && Object.keys(params).length > 0;

Callers 1

formatIntoCodeSnippetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected