Function: isText()
isText(
val):val is string
Defined in: src/utils/shortString.ts:65
Test if value is a pure string text, and not a hex string or number string
Parameters
val
any
the value to test
Returns
val is string
returns true if the value is a free-form string text, otherwise false
Example
const result = shortString.isText('Hello, world!');
// result = true
const result = shortString.isText('0x7aec92f706');
// result = false