I have a text area field and I need to get all the values, then split them into array.
Here is my code: sample.split('\n')
When I review the logs, I've observed that there are spaces in them...
[133986 ,133979 ,133981 ]
How can I remove the spaces when I split it?
Thank you.