Strickland validators are pure functions that accept values and return validation results. Here is an extremely simple validator that validates that the value supplied is the letter 'A', returning the validation result as a boolean.
// As an arrow functionconst letterA = (value) => (value === 'A');// As a traditional functionfunction letterA(value) {return (value === 'A');}