Split a string into substrings using the specified separator, and return them as an array.
type R = StringSplit<'abc', ''> // ['a', 'b', 'c']type R = StringSplit<'abc', 'a'> // ['', 'bc']type R = StringSplit<'abc', 'b'> // ['a', 'c']type R = StringSplit<'abc', 'c'> // ['ab', ''] Copy
type R = StringSplit<'abc', ''> // ['a', 'b', 'c']type R = StringSplit<'abc', 'a'> // ['', 'bc']type R = StringSplit<'abc', 'b'> // ['a', 'c']type R = StringSplit<'abc', 'c'> // ['ab', '']
Split a string into substrings using the specified separator, and return them as an array.