Answers for "javascript code for line break after comma"

0

javascript code for line break after comma

var test = list.toString();
	// console.log("test", test)
	let dataToArray = test.split(',').map(item => item.trim());
//convert array to string replacing comma with new line
	console.log(dataToArray.join("<br />"))
	this.data[i].zoneAdd = dataToArray.join("<br />")
Posted by: Guest on September-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language