Skip to content

comparable

Category: Math

Returns true if the input values can be compared using comparison operators

  • Return type: boolean
  • Parameters:
    • other any — Value to test comparability with
1.comparable(2)
'a'.comparable('b')
1.comparable('a')