Checks if length of value is equal to the provided length.
const nonEmpty = notLength(0);nonEmpty(""); // Error: notLengthnonEmpty("hello"); // passes Copy
const nonEmpty = notLength(0);nonEmpty(""); // Error: notLengthnonEmpty("hello"); // passes
Length used in the comparison.
Checks if length of value is equal to the provided length.
Example