Closed ghost closed 12 years ago
Hi! Is it possible to add extensions? I would like to have something like underscore's mixin function.
should.mixin({ integer: function(val) { return val % 1 == 0 } });
there is no built in way to do it, but nothing wrong with just extending the prototype
Hi! Is it possible to add extensions? I would like to have something like underscore's mixin function.