apps-script-utils 2.1.1 Help

MergeOptions

interface MergeOptions

onMissing decides what happens to a placeholder whose key is absent: "keep", the default, leaves it in the output where it is visible and traceable; "empty" substitutes nothing, which is tidier in something a reader will see.

escape is a function applied to every substituted value — escapeHtml when the result goes into a page.

Examples

Shape

const options = { onMissing: "empty", escape: escapeHtml };

See also

Source

src/lang/string/merge.ts

23 September 2026

This documentation was generated with AI (Claude) from the library's source code.