You can make an array from a string and remove a certain character with split:
const str = "hello world"
const one = str.split(" ")
console.log(one) // ["hello", "world"]
But how can you split a string into an array without removing the character?
const str = "Hello."
["Hello", "."] // I need this output