3. applyCalc.interpolateString(str, context)
Replaces placeholders in a string with values from a context object. Placeholders use {{key}} syntax.
Example:
1const text = "Hello {{name}}!";2const result = applyCalc.interpolateString(text, { name: "Alice" });3console.log(result); // "Hello Alice!"