compare(_:)
Declaration
func compare(_ other: JSValue) -> JSRelationConditionReturn Value
A value of JSRelationCondition, a kJSRelationConditionUndefined is returned if an exception is thrown.
Discussion
Compare two JSValues.
The result is computed by comparing the results of JavaScript’s ==, <, and > operators. If either self or other is (or would coerce to) NaN in JavaScript, then the result is kJSRelationConditionUndefined.