time-to-botec/squiggle/node_modules/@stdlib/assert/is-ascii/docs/repl.txt

27 lines
546 B
Plaintext
Raw Normal View History

{{alias}}( str )
Tests whether a character belongs to the ASCII character set and whether
this is true for all characters in a provided string.
Parameters
----------
str: string
Input string.
Returns
-------
bool: boolean
Boolean indicating whether a string has all ASCII characters.
Examples
--------
> var str = 'beep boop';
> var bool = {{alias}}( str )
true
> bool = {{alias}}( {{alias:@stdlib/string/from-code-point}}( 130 ) )
false
See Also
--------