The system.rules
library defines a set of functions and classes to evaluate some basic or complex conditions in your applications.
Classes
- And
- BooleanRule
- DivBy
- EmptyString
- Equals
- Even
- False
- GreaterOrEqualsThan
- GreaterThan
- IsBoolean
- IsNaN
- IsNumber
- IsString
- LessOrEqualsThan
- LessThan
- Not
- NotEquals
- Null
- Odd
- Or
- True
- Undefined
- Zero
Methods
-
<static> exports.isRule(target)
-
Indicates if the specific objet is a
system.rules.Rule
object and contains aneval
method.Parameters:
Name Type Description target
Object The object to validate.
Returns:
true
if the object is asystem.rules.Rule
instance.