mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
30 lines
623 B
TypeScript
30 lines
623 B
TypeScript
// Loaded from https://deno.land/x/ramda@v0.27.2/source/lt.js
|
|
|
|
|
|
import _curry2 from './internal/_curry2.js';
|
|
|
|
|
|
/**
|
|
* Returns `true` if the first argument is less than the second; `false`
|
|
* otherwise.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.1.0
|
|
* @category Relation
|
|
* @sig Ord a => a -> a -> Boolean
|
|
* @param {*} a
|
|
* @param {*} b
|
|
* @return {Boolean}
|
|
* @see R.gt
|
|
* @example
|
|
*
|
|
* R.lt(2, 1); //=> false
|
|
* R.lt(2, 2); //=> false
|
|
* R.lt(2, 3); //=> true
|
|
* R.lt('a', 'z'); //=> true
|
|
* R.lt('z', 'a'); //=> false
|
|
*/
|
|
var lt = _curry2(function lt(a, b) { return a < b; });
|
|
export default lt;
|