Ascent.text

ascent.text.isASCII

Checks if a string contains only ASCII characters.

ascent.text.isASCII(input: string): boolean;
Parameter
Type
Description

Input

String

The value that needs to be checked

Example

ascent.text.isASCII("72 101 108 108 111 33")

ascent.text.isUFT8

Checks if a string contains only UTF-8 characters.

ascent.text.isUTF8(input: string): boolean;
Parameter
Type
Description

Input

String

The value that needs to be checked

Example

ascent.text.isUTF8("🚀")

Last updated

Was this helpful?