1 contributor
Like
Install comparator as a package?
Copied
npm i @bit/justin-capalbo.ramda.comparator
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
comparator (
pred:
) : Function
Function
Makes a comparator function out of a function that reports whether the first element is less than the second.
Example
Argument
pred:
Function
A predicate function of arity two which will return true
if the first argument
is less than the second, false
otherwise
Returns
Function
A Function :: a -> b -> Int that returns `-1` if a < b, `1` if b < a, otherwise `0`