Checks if two values are equal. The operation can be performed over values of any type.
the first value to compare
the second value to compare
true if values are equal and false otherwise
Checks if two values are NOT equal The operation can be performed over values of any type.
the first value to compare
the second value to compare
true if values are NOT equal and false otherwise
Perform comparison operation over two arguments. The operation can be performed over values of any type.
the first argument to compare
the comparison operation: "==" ("=", "EQ"), "!= " ("<>", "NE"); "<"/">" ("LT"/"GT"), "<="/">=" ("LE"/"GE"); "LIKE".
the second argument to compare
result of the comparison operation
Checks if first value is greater than the second one. The operation can be performed over numbers or strings.
the first value to compare
the second value to compare
true if the first value is greater than second and false otherwise.
Checks if first value is less than the second one. The operation can be performed over numbers or strings.
the first value to compare
the second value to compare
true if the first value is less than second and false otherwise.
Checks if string matches a regular expression
a string value to match
a regular expression string
true if the value matches regular expression and false otherwise.
Generated using TypeDoc
Helper class to perform comparison operations over arbitrary values.
Example
ObjectComparator.compare(2, "GT", 1); // Result: true ObjectComparator.areEqual("A", "B"); // Result: false