hasOpening()
Wrap.prototype.hasOpening()
Wrap.prototype.hasOpening()
Checks whether the primitive value of a specified object has the opening
chars or given opening
chars.
If given opening
chars in the constructor are the empty string
, the method returns false
.
wrap.class.ts
Parameters
opening?: string
opening?: string
Optional opening chars of a string
type to check if the primitive value contains them at the beginning.
Returns
The return value is a boolean
indicating whether the primitive value has the opening
chars or given opening
chars.
Example usage
Given closing
chars
closing
charsLast updated