Splits a string by any of the given characters.
Example:
splitByChars("a,b;c", ",;"); // ["a", "b", "c"] Copy
splitByChars("a,b;c", ",;"); // ["a", "b", "c"]
The input string to split.
A string containing one or more characters to split by.
An array of string segments split at any of the given characters.
Splits a string by any of the given characters.
Example: