You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to print a list as a comma separated values of an array.
I found below code works in some implementation (ex: mustache
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
The text was updated successfully, but these errors were encountered:
I want to print a list as a comma separated values of an array.
I found below code works in some implementation (ex: mustache
The text was updated successfully, but these errors were encountered: