Overview
The `Wrap` primitive wrapper object
Last updated
The `Wrap` primitive wrapper object
Last updated
The Wrap
object is based on the String
object and represents the immutable primitive value of the text wrapped by the opening and closing chars. It is designed to preserve the type names of the supplied opening, text, and closing chars by using the generic type variables.
public get closing(): Closing
The |
public get opening(): Opening
The |
public get text(): Text
The |
public get [Symbol.toStringTag](): string
The |
#closing: Closing
Private property of the closing chars of a generic type variable |
#opening: Opening
Private property of the opening chars of a generic type variable |
#text: Text
Private property of text of a generic type variable |
public getClosing()
Gets the closing chars of the wrap by returning the |
public getOpening()
Gets the opening chars of the wrap by returning the |
public hasClosing()
Checks whether the primitive value of a specified object has the |
public hasOpening()
Checks whether the primitive value of a specified object has the |
public isWrapped()
The method checks whether the primitive value of the specified object is wrapped by the opening and closing chars of an instance or given |
public ★ replaceClosing()
Returns the primitive value with replaced |
public ★ replaceOpening()
Returns the primitive value with replaced |
public ★ replaceText()
Returns the primitive value with replaced |
public toString()
Gets the wrap, the primitive value of a specified |
public valueOf()
Returns the wrap, primitive value of a specified |
public static hasClosing()
Checks whether the |
public static hasOpening()
Checks whether the |