★ wrapText()
Wrapper.prototype.wrapText()
Wrapper.prototype.wrapText()
The method returns the primitive value of the Wrapper
object with text
wrapped by given opening
and closing
chars.
Generic type variables
TextOpening
extends
string
=
''
TextOpening
extends
string
=
''
A generic type variable constrained by the string
indicates the captured type of the supplied opening
parameter and the Opening
type in the generic type Wrapped
via return type, by default an empty string
.
TextClosing
extends
string
=
''
TextClosing
extends
string
=
''
A generic type variable constrained by the string
indicates the captured type of the supplied closing
parameter and the Closing
type in the generic type Wrapped
via return type, by default an empty string
.
Parameters
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.
Return type
Wrapped<Opening, Wrapped<TextOpening, Text, TextClosing>, Closing>
Wrapped<Opening, Wrapped<TextOpening, Text, TextClosing>, Closing>
The return type is the generic type Wrapped
that takes generic type variables Opening
, Text
and Closing
.
Returns
The return value is the primitive value with text
wrapped by given opening
and closing
characters of generic type Wrapped
.
Example usage
Last updated