@tempots/std

stringEndsWith() function

Checks if a string ends with a specified suffix.

Signature:

stringEndsWith: (s: string, end: string) => boolean

Parameters

Parameter

Type

Description

s

string

The string to check.

end

string

The suffix to check against.

Returns: boolean

true if the string ends with the specified suffix, false otherwise.