Skip to main content

Function: split()

split(this, left, subString): string[] | Markup[]

Return an array of strings that are the input string split on the filter's argument string.

Parameters

this: FilterContext

An object containing a reference to the active render context and any keyword/named arguments.

left: unknown

Any value. Will be coerced to a string if it's not one already.

subString: unknown

Any value. Will be coerced to a string if it's not one already.

Returns

string[] | Markup[]

An array of strings that are the input string split on the filter's argument string.

Defined in

src/builtin/filters/string.ts:434