I. Yes, ['range', [1, 5]] will be translated to its corresponding Factory call like fn(1, 5) and for more complex cases an object could be used like ['asyncUniqueEmail', { endpoint: '...', minLength: 4, ... }] and you will receive it in your Factory fn({ endpoint, minLength, ... }) :)
I. Yes,
['range', [1, 5]]will be translated to its corresponding Factory call likefn(1, 5)and for more complex cases an object could be used like['asyncUniqueEmail', { endpoint: '...', minLength: 4, ... }]and you will receive it in your Factoryfn({ endpoint, minLength, ... }):)II. Let's try to implement that Validator with
Matchersfor the next chapter of this series: github.com/myndpm/open-source/issu...Thank you for your feedback! :D