Documentation

length()

Validates that the string has exactly the specified number of characters.

length(length: number, error?: StringConvertible): this;

Parameters

Return value

This builder, for chaining.

Related