Closed br0r closed 9 years ago
Duns validation should be able to throw an error when validation fails. Unlike .validate() today, which returns a bool.
.validate()
Duns.assert('test', Duns.number()); // Throws err
I like this idea - would be easy to implement as well.
Duns validation should be able to throw an error when validation fails. Unlike
.validate()
today, which returns a bool.