mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
30 lines
655 B
TypeScript
30 lines
655 B
TypeScript
// Loaded from https://deno.land/x/ramda@v0.27.2/source/lte.js
|
|
|
|
|
|
import _curry2 from './internal/_curry2.js';
|
|
|
|
|
|
/**
|
|
* Returns `true` if the first argument is less than or equal to the second;
|
|
* `false` otherwise.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.1.0
|
|
* @category Relation
|
|
* @sig Ord a => a -> a -> Boolean
|
|
* @param {Number} a
|
|
* @param {Number} b
|
|
* @return {Boolean}
|
|
* @see R.gte
|
|
* @example
|
|
*
|
|
* R.lte(2, 1); //=> false
|
|
* R.lte(2, 2); //=> true
|
|
* R.lte(2, 3); //=> true
|
|
* R.lte('a', 'z'); //=> true
|
|
* R.lte('z', 'a'); //=> false
|
|
*/
|
|
var lte = _curry2(function lte(a, b) { return a <= b; });
|
|
export default lte;
|