Skip to main content

compare

functionv1.7

cljs.core/compare

Available in:BBCLJCLJS
(compare [x y])
Comparator. Returns a negative number, zero, or a positive number when x is logically 'less than', 'equal to', or 'greater than' y. Uses IComparable if available and google.array.defaultCompare for objects of the same type and special-cases nil to be less than any other object.

No examples yet. Be the first to add one!

See Also