Skip to content

@technobuddha > library > Programming > Variables

Function: tokenize()

ts
function tokenize(input: string): string[];

Defined in: tokenize.ts:15

Splits the input string into an array of words.

Parameters

ParameterTypeDescription
inputstringThe string to tokenize.

Returns

string[]

An array of words found in the input string. Returns an empty array if no matches are found.