Rxova
Skip to content

evaluateRules

function evaluateRules(rules, password): PasswordRuleState[];

Evaluate every rule against the current password.

A rule that throws is reported as unmet rather than taking the field down with it: test is consumer code running on every keystroke, and a typo in someone’s custom predicate should degrade the checklist, not the login form.

ParameterType
rulesPasswordRule[]
passwordstring

PasswordRuleState[]