★ wrapOn()
Wrapper.prototype.wrapOn()
Wrapper.prototype.wrapOn()public wrapOn<CustomText extends string = ''>(
text: CustomText
): Wrapped<Opening, CustomText, Closing> {
return new Wrap(this.opening, this.closing, text).valueOf();
}Generic type variables
CustomTextextendsstring=''
CustomTextextendsstring=''Parameters
Return type
Wrapped<Opening, CustomText, Closing>
Wrapped<Opening, CustomText, Closing>Returns
Example usage
Last updated