JS Utils Kit
    Preparing search index...

    Function hasWhitespace

    • Checks if a string contains any whitespace.

      Parameters

      • value: string

        The string to check

      Returns boolean

      True if the string contains whitespace.

      hasWhitespace("Hello world") // true
      hasWhitespace("Nowordspace") // false