Loading the puzzle…
The puzzle IDE is built for a laptop or larger screen. You can read everything here, but selecting code is easier with a mouse and a wider window.
The maxLength and minLength keywords are implemented in
lib/vocabularies/validation/limitLength.ts. With default options (the unicode option is
not set to false), the generated code does not compare the string's .length. Instead it
calls a helper function at validation time that counts the string's characters. Select
that helper function, the one that does the counting (not the function that makes it
available to the generated code). Select a function.
One symbol: a function, method, class or constant.
Each hint revealed before you solve takes 20 points off this puzzle's score.
Solve this puzzle to see the solution and a full explanation.
Put the cursor on a symbol and choose Select as answer below the editor, or use + on an outline row.
No symbol selected yet.