Skip to content

Cm5StringStream.lookAhead method

Cm5StringStream › lookAhead

Unofficial

Look ahead and return the character n characters ahead without advancing.

Signature:

lookAhead(n: number): string | undefined

Parameters:

Parameter Type Description
n number The number of characters to look ahead.

Returns: string | undefinedThe character, or undefined if past end of line.