split string javascript by "," code example
Example 1: string split javascript
var myString = "An,array,in,a,string,separated,by,a,comma";
var myArray = myString.split(",");
Example 2: js split string
var myString = "Hello World!";
var splitWords = myString.split(" ");
var hello = splitWords[splitWords.indexOf("Hello")];
Example 3: split text javascript
<p className="text-bold-500 mb-0">{row.BusinessDescription.length > 100 ? `${row.BusinessDescription.slice(0, 100)}...` : row.BusinessDescription}</p>