54
rated 0 times
[
55]
[
1]
/ answers: 1 / hits: 25155
/ 6 Years ago, mon, august 13, 2018, 12:00:00
I have an array that i transformed it into text with array-to-txt module.
Instead i wanted it transformed to a big string, but i wanted a newline after every index of the array (the afforementioned module does this automatically).
So i wrote this:
result.toString();
result = result.split(,).join(n);
Where result is the array. It didn't work, so then i tried this:
result.toString();
var output = result.split(,).join(n);
Still i get the TypeError: result.split is not a function
error.
More From » node.js