Checks if length of value is not equal to the provided length.
const twoLetters = length(2);twoLetters(""); // Error: lengthtwoLetters("ab"); // passes Copy
const twoLetters = length(2);twoLetters(""); // Error: lengthtwoLetters("ab"); // passes
Length used in the comparison.
Checks if length of value is not equal to the provided length.
Example