Version: v0.7.1 - Beta.  We welcome contributors & feedback.

String.isAscii

isAscii() -> boolean

Description

Return true if the string has all ASCII characters.

'abc-123 xzy!'.isAscii()
//= true

'ⒶⒷⒸ 123'.isAscii()
//= false

See Also