Function: slice()
slice(
this
,left
,offset
,length
?):string
|unknown
[] |Markup
Return a substring or subsequence of the input value.
Parameters
• this: FilterContext
An object containing a reference to the active render context and any keyword/named arguments.
• left: unknown
Any value. If its not an array or string, it will be converted to a string.
• offset: unknown
Start of the subsequence in number of items or characters.
• length?: unknown
The maximum number of items or characters in the resulting sequence.
Returns
string
| unknown
[] | Markup
A substring for subsequence.