hasText()
The method checks whether the text of a specified Wrap object is defined, which means it's a string of at least one char and optionally equal to the given text.
Wrap.prototype.hasText()
Wrap.prototype.hasText()
The method checks whether the text
of a specified Wrap
object is defined, which means it's a string
of at least one char and optionally equal to the given text
.
wrap.class.ts
Parameters
text
?: string
text
?: string
Optional text of string
type to check whether it's equal to the text
of the Wrap
object.
Returns
The return value is a boolean
indicating whether the text
is defined and optionally equal to the given text
.
Example usage
Given text
text
Last updated