Instance methods
Tag.prototype.
Last updated
Was this helpful?
Tag.prototype.
Last updated
Was this helpful?
Tag.prototype.getClosingTag()
Gets the of a specified object.
The return value is the closing tag of a generic type .
Tag.prototype.getName()
Gets the tag name without the and char.
Tag.prototype.getOpeningTag()
Tag.prototype.getWrap()
Tag.prototype.replaceTag()
Need to know: The return type of a generic type variable Text
returns the text with not replaced tags.
Text extends string
text: Text
The text in which to replace a tag of a specified object with a given replaceValue
.
replaceValue?: string
The value to replace a tag of a specified object in the given text
.
The return value is the given text
of a generic type variable Text
with a replaced tag if both the text
and replaceValue
are strings. If replaceValue
is not a string
returns not replaced text
, and if both the text
and replaceValue
are not strings returns an empty string
.
Tag.prototype.tagText()
Text extends string
text: Text
The text of a string
type, to be tagged with the opening and closing tag.
Tag.prototype.valueOf()
The return value is the tag name of a generic type variable .
Gets the of the specified object.
The return value is the opening tag of a generic type .
Gets the of a tag name.
The return value is an instance of .
The method replaces the tag of a specified object with the provided replaceValue
in the given text
if both values are strings.
​A generic type variable constrained by the by default of the value captured from the provided text
parameter indicates the type of Text
via the return type.
The method the provided text
with the and tag.
​A generic type variable constrained by the by default of the value captured from the provided text
parameter indicates the type of via the return type.
The return value is a new instance with a tagged text
.
Returns tag name, a primitive value of the specified object.
The return value is a tag name of a generic type variable .