MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / postfix

Function postfix

javascriptv3/example_code/libs/utils/util-string.js:32–38  ·  view source on GitHub ↗
(source, str)

Source from the content-addressed store, hash-verified

30};
31
32export const postfix = (source, str) => {
33 if (typeof str !== "string") {
34 throw new Error("Cannot postfix a non-string value.");
35 }
36
37 return `${source}${str}`;
38};
39
40/**
41 * @param {string} str

Calls

no outgoing calls

Tested by

no test coverage detected