The code below converts values separated by comma into array. Is it possible to find delimiter automatically - for example if user enters space or next line as delimiter between 2 numbers instead of comma?
console.log(document.getElementById('df').value.split(',').map(Number))
<textarea id='df' rows="5" cols="40">201,202,203</textarea>
You could simply use a Regex, as @kellys suggested to you in the comments. I wrote one for you but depends on what you expect to receive in the text area:
console.log(document.getElementById('df').value.split(/[ \n,]+/).map(Number))
```