Documentation

endsWith()

Validates that the string ends with the specified suffix.

endsWith(suffix: string, error?: StringConvertible): this;

Parameters

Return value

This builder, for chaining.

Related