@goodnight-dev/utils
    Preparing search index...
    • Test whether a string is entirely ASCII — every code point in the range U+0000–U+007F. Unicode-aware via the u flag, so an astral-plane character (a single non-ASCII code point) correctly fails.

      Parameters

      • value: string

        The string to test.

      Returns boolean

      true if every character is ASCII; true for an empty string.

      isAsciiString('hello world') // => true
      isAsciiString('café') // => false
      isAsciiString('') // => true