Skip to main content
Version: 11.x

Function: isLongText()

isLongText(val): boolean

Defined in: src/utils/shortString.ts:90

Test if value is long text

Parameters​

val​

any

the value to test

Returns​

boolean

returns true if the value is a long text(string has more than 31 characters), otherwise false.

Example​

const result = shortString.isLongText("Hello, world! this is some random long string to enable you test isLongText function.");
// result = true