hasOpening()
Wrap.hasOpening()
Wrap.hasOpening()
Checks whether the text
has given opening
chars at the beginning.
wrap.class.ts
Parameters
text: string
text: string
The text of string
, to check whether it contains given opening
chars.
opening: string
opening: string
The opening chars of string
to check if a given text
contains.
Returns
The return value is a boolean
indicating whether the text
contains opening
chars at the beginning.
Example usage
Last updated