I want to print a list as a comma separated values of an array.
const myArray = ["apple", "banana", "orange"];
const template = "{{#myArray}}{{.}}{{^last}}, {{/last}}{{/myArray}}";
const output = Mustache.render(template, { myArray });
console.log(output); // Output: "apple, banana, orange"
````
I have test and it seems that there is no `last` tag.
Is there alternative? what is the best way to have this result
I want to print a list as a comma separated values of an array.
I found below code works in some implementation (ex: mustache