Split a string into an array:
let csv = "apple,banana,cherry"
let fruits = csv.split(",")
console.log(fruits) // ["apple", "banana", "cherry"]
let sentence = "Hello World"
let words = sentence.split(" ")
console.log(words) // ["Hello", "World"]
The argument is the delimiter. You get an array of parts between the delimiters.