@nyaomaru/divider
    Preparing search index...

    Function dividerFirst

    • Extracts the first 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 first segment after division, or an empty string if no segments are found

      dividerFirst("hello-world", "-") // returns "hello"
      dividerFirst("abc123def", 3) // returns "abc"