utilities/rule
Utility to finds the matching rules in a rule set
Parameters
|
Parameter |
Type |
Attributes |
Description |
|---|---|---|---|
|
rules |
Array.<Object> |
Required |
Rules to test against |
|
ignore |
Array |
Required |
Rule attributes to ignore |
|
attributes |
Object |
Required |
Attributes to match on |
Returns
|
Type |
Description |
|---|---|
|
Object |
The matching rule |
|
Null |
If no matching rule found |