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