Static methods
The static methods of `Wrap` the string object.
Public
Wrap.isWrap()
Wrap.isWrap()
The method checks if the value of any type is the Wrap
instance of any or given opening and closing.
Generic type variables |
---|
Parameters
Name: type | Description |
---|---|
| The value of any type to test against the |
| An optional wrap opening to check if the given |
| An optional wrap closing to check if the given |
Returns
Return type |
---|
The return type is a |
The return value is a boolean
type indicating whether the value is an instance of Wrap
of any or given opening and closing.
Example usage
Wrap.template()
Wrap.template()
The static "tag" method builds the wrap of a string
type on the template. With the added string before the expressions, it returns a wrapped string.
Parameters
Name: type | Description |
---|---|
| |
|
Returns
The return value is a string
the wrap, or an empty string
if elements of the provided values
are not string
.
Example usage
Last updated