Namespace: rules

system. rules

The system.rules library defines a set of functions and classes to evaluate some basic or complex conditions in your applications.

Author:
License:

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 an eval method.

Parameters:
Name Type Description
target Object

The object to validate.

Returns:

true if the object is a system.rules.Rule instance.