@nyaomaru/divider
    Preparing search index...

    Function dividerLast

    • Extracts the last segment after dividing the input using specified separators.

      Parameters

      • input: string | string[]

        A string or array of strings to divide

      • ...args: DividerSeparators

        Array of separators (numbers/strings) to use for division

      Returns string

      The last segment after division, or an empty string if no segments are found

      dividerLast("hello-world", "-") // returns "world"
      dividerLast("abc123def", 3) // returns "def"