Skip to content

@technobuddha > library > String > Deconstruction

Function: delimited()

ts
function delimited(
   input: string, 
   delimiter: string, 
   index: number, 
   count: number): string;

Defined in: delimited.ts:12

Return a field from a delimited string

Parameters

ParameterTypeDefault valueDescription
inputstringundefinedThe delimited string
delimiterstringundefinedThe delimiter string
indexnumber0The position of the desired field, 0 is the first field, negative numbers count backwards from the end (default 0)
countnumber1The number of fields to return (default 1)

Returns

string