★ 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=''
Parameters
text:CustomText
Return type
Wrapped<Opening, CustomText, Closing>
Returns
Example usage
Last updated