#change an array to form body
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
What i want to do is get the values inside an array and add it to form body like this
const values = ["bleu", "green", "red"]
form.body(values)```
change an array to form body
you can use the JavaScript join("") method for arrays to turn all the elements within into a single string.
form.body(values.join("\n"))