★ wrap()
Last updated
Was this helpful?
Last updated
Was this helpful?
Wrapper.prototype.wrap()
The method wraps the of a specified object by its and chars, or the given and chars.
CustomOpening
extends
string
=
Opening
A generic type variable constrained by the indicates the captured type of the supplied parameter and the type in the generic type via , by default generic type variable of the object.
CustomClosing
extends
string
=
Closing
A generic type variable constrained by the indicates the captured type of the supplied parameter and the type in the generic type via , by default generic type variable of the object.
Wrapped<CustomOpening, Wrapped<Opening, Text, Closing>, CustomClosing>
Optional opening chars of a generic type variable to wrap the of the instance.
Optional closing chars of a generic type variable to wrap the of the instance.
The return type is the generic type that takes generic type variables , and .
The return value is a wrapped by the and chars of the instance or the given and chars.