I would be great to have the ability to remove not permitted attributes. For example:
constparams={age: 25,foo: "bar"}construles={age: {type: "int",max: 200}}consterrors=parameter.validate(rules,params)make params to be equal to {age: 25}, not to {age: 25, foo: "bar"}.
I would be great to have the ability to remove not permitted attributes. For example:
make
paramsto be equal to{age: 25}, not to{age: 25, foo: "bar"}.