cheek
cheek (formerly check) is a library of various validation methods.
cheek; // truecheek; // true cheek;/* [ * [ false, false, false ], * [ true, true, false ], * [ true, false, true ] * ] */
It allows you to keep your code clean and vastly increases its readability.
let every = cheek; if every // false // you shall not pass! // *** for var i = 0; i = inputslength; i++ if inputsi instanceof InvalidObject throw "The input is invalid"; for let input of inputs if input instanceof InvalidObject throw "The input is invalid"; if cheek throw "The input is invalid"; // *** if thisprofilepersonage < 5 || thisprofilepersonage > 42 throw "The age is not in range"; if cheek throw "The age is not in range";
Chapters:
TODO:
See issues.