When constructor

const When(
  1. Predicate predicate,
  2. Validator delegate
)

Implementation

const When(this.predicate, this.delegate);