unwrap()
Wrapper.unwrap()
Wrapper.unwrap()
The method returns the given text
without the given opening
and closing
chars.
wrapper.class.ts
Parameters
text: string
text: string
The text of the string
from which given opening
and closing
chars are removed.
opening: string
opening: string
The opening chars of the string
to be removed in the given text
.
closing: string
closing: string
The closing chars of the string
to be removed in the given text
.
Returns
The return value is the given text
of string
type without the given opening
and closing
chars or unchanged text
if it does not contain the given opening
and closing
chars.
Example usage
Last updated