Extracts the last 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 last segment after division, or an empty string if no segments are found
dividerLast("hello-world", "-") // returns "world"dividerLast("abc123def", 3) // returns "def" Copy
dividerLast("hello-world", "-") // returns "world"dividerLast("abc123def", 3) // returns "def"
Extracts the last segment after dividing the input using specified separators.