@nyaomaru/divider
    Preparing search index...

    Function dividerNumberString

    • Divides a string or array of strings by separating numbers from non-numbers.

      This function splits input by detecting transitions between numeric and non-numeric characters. For example, "abc123def" would be split into ["abc", "123", "def"].

      Type Parameters

      • T extends string | string[]

      Parameters

      • input: T

        String or array of strings to divide

      • Optionaloptions: DividerOptions

        Optional configuration options for the division process

      Returns DividerResult<T>

      Array of segments where numbers and non-numbers are separated

      dividerNumberString("abc123def") // returns ["abc", "123", "def"]
      dividerNumberString("test42") // returns ["test", "42"]