(string, replacements)
| 395 | } |
| 396 | |
| 397 | function 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 | |
| 406 | function paramsExist(params) { |
| 407 | return params && Object.keys(params).length > 0; |
no outgoing calls
no test coverage detected