js split text by line code example
Example 1: split text by new line javascript
myText.split(/\n/)
Example 2: split text javascript
<p className="text-bold-500 mb-0">{row.BusinessDescription.length > 100 ? `${row.BusinessDescription.slice(0, 100)}...` : row.BusinessDescription}</p>