ifPass()Tests subject against control and if it results in a true-ish value truthyValue will be passed back. Otherwise, if opt_falsyValue is given it will be passed back, but if not subject will be passed back.
subject being the only argument. Otherwise, this regular expression will be tested against subject.subject against control results in a true-ish value.subject
subject against control results in a false-ish value.truthyValue will be returned if testing subject against control results in a true-ish value. Otherwise, if opt_falsyValue is given it will be returned, but if not given subject will be returned.This function directly requires the following function which is included automatically:
ifIs()This function is directly required by the following function:
ifIs()