min
min(limit, [closed=true])
Effect
Arguments
Example
const schema = racoon.array(racoon.number()).min(3);
schema.validate([1, 2]); // fail
schema.validate([1, 2, 3]); // pass
schema.validate([1, 2, 3, 4]); // pass
const schema2 = racoon.array(racoon.number()).min(3, false);
schema2.validate([1, 2]); // fail
schema2.validate([1, 2, 3]); // fail
schema2.validate([1, 2, 3, 4]); // passLast updated