Compare
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Syntax
Core.Compare
· [left]
· [right]
Parameters
- left
- The left object to compare.
- right
- The right object to compare.
Return Value
A number indicating the comparison result. If less than zero, the left object if smaller. If zero, both are equal. If larger than zero, the right object is smaller.