I noticed it with doc validators but it's certainly same for other validators and perhaps other stuff.
const schema = new SimplSchema({value: String})
schema.addDocValidator(() => [])
console.log(schema._docValidators.length, schema.pick("value")._docValidators.length); // 1 0
I noticed it with doc validators but it's certainly same for other validators and perhaps other stuff.