I want to write a little function which receive an array of objects which describe rule(s) to check, using node-validator.
I wrote this:
The error is at the line 68. I'm using the same example than describe in the method description. And I have to manage args dynamically too.
If I replace:
It works. So my main problem is to call the good method...
Can you help me?
If you want to get the property of the object returned by
check() based on the value of
rule[j]['function'], you need to use bracket notation:
There is currently no discussion for this recipe.
This recipe can be found in it's original form on Stack Over Flow.