Wrapped() constructor
Wrapped()
Wrapped()
Creates a new instance of Wrapped
with the specified text and wrap.
wrapped.class.ts
Generic type variables
Parameters
Name: type
Description
text: Text
The value of a generic type variable Text
to be wrapped with a given wrap
.
wrap: Wrap<Opening, Closing>
An instance of Wrap
to wrap a given text
.
Returns
The return value is a new instance of Wrapped
with the primitive value of the provided text
if set properly, otherwise with an empty string
.
Example usage
Last updated