Returns the substring before the first occurrence of any the given separators (the separator is not returned)
Optional
the string to get a substring from
the strings to search for
the substring before the first occurrence of any the given separators
David Hsing
substringBeforeAny("foo/bar/foo/bar", ["/", ";"]); // 'foo' Copy
substringBeforeAny("foo/bar/foo/bar", ["/", ";"]); // 'foo'
Returns the substring before the first occurrence of any the given separators (the separator is not returned)