Skip to content

currentWord() function

Home > streplts > currentWord

Extracts the final contiguous word segment token from an input text sequence line.

Signature:

export declare function currentWord(input: string): string;

Parameter

Type

Description

input

string

The text stream buffer content.

Returns:

string

Isolated active phrase slice or empty string. *