Function isCommaSepareted

  • Checks if a string is comma-separated, i.e., contains one or more commas.

    Example

    isCommaSepareted("one, two, three")
    // => true

    isCommaSepareted("one")
    // => false

    isCommaSepareted("one two three")
    // => false

    Parameters

    • str: string

      The string to check for comma-separated format.

    Returns boolean

    A boolean value indicating whether the input string is comma-separated (true) or not (false).

Generated using TypeDoc v0.24.7