Splits a string into an array of substrings based on a specified separator.
const source = 'Hello, world!';const separator = ',';split(separator)(source) // ['Hello', ' world!'] Copy
const source = 'Hello, world!';const separator = ',';split(separator)(source) // ['Hello', ' world!']
Splits a string into an array of substrings based on a specified separator.
Example