Extracts the first segment after dividing the input using specified separators.
A string or array of strings to divide
Array of separators (numbers/strings) to use for division
The first segment after division, or an empty string if no segments are found
dividerFirst("hello-world", "-") // returns "hello"dividerFirst("abc123def", 3) // returns "abc" Copy
dividerFirst("hello-world", "-") // returns "hello"dividerFirst("abc123def", 3) // returns "abc"
Extracts the first segment after dividing the input using specified separators.