★ wrapText()
Last updated
Was this helpful?
Last updated
Was this helpful?
Wrapper.prototype.wrapText()
The method returns the primitive value of the Wrapper
object with text
wrapped by given opening
and closing
chars.
TextOpening
extends
string
=
''
A generic type variable constrained by the string
indicates the captured type of the supplied opening
parameter and the type in the generic type Wrapped
via return type, by default an empty string
.
TextClosing
extends
string
=
''
A generic type variable constrained by the string
indicates the captured type of the supplied closing
parameter and the type in the generic type Wrapped
via return type, by default an empty string
.
The opening chars of a generic type variable TextOpening
to wrap the text
of the Wrapper
instance.
The closing chars of a generic type variable TextClosing
to wrap the text
of the Wrapper
instance.
Wrapped<Opening, Wrapped<TextOpening, Text, TextClosing>, Closing>
The return value is the primitive value with text
wrapped by given opening
and closing
characters of generic type Wrapped
.
The return type is the generic type Wrapped
that takes generic type variables , and .