compare

compare given values and return -1, 0, or 1 based on the result


Parameters

compare valueA :any
        valueB :any

Returns

  • :integer

Examples

copy
compare 1 2 ; => -1 compare 3 3 ; => 0 compare 4 3 ; => 1

Related