@tempots/std

isSpaceAt() function

Checks if the character at the specified position in a string is a whitespace character.

Signature:

isSpaceAt: (s: string, pos: number) => boolean

Parameters

Parameter

Type

Description

s

string

The input string.

pos

number

The position of the character to check.

Returns: boolean

A boolean indicating whether the character at the specified position is a whitespace character.