added placeholder definition to lte

This commit is contained in:
Drew Wyatt
2018-11-01 09:52:37 -04:00
parent ddbf2a0789
commit c450a0c77c
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -1316,12 +1316,14 @@ declare namespace R {
/**
* Returns true if the first parameter is less than the second.
*/
lt(__: Placeholder, b: number): (a: number) => boolean;
lt(a: number, b: number): boolean;
lt(a: number): (b: number) => boolean;
/**
* Returns true if the first parameter is less than or equal to the second.
*/
lte(__: Placeholder, b: number): (a: number) => boolean;
lte(a: number, b: number): boolean;
lte(a: number): (b: number) => boolean;
+2
View File
@@ -133,6 +133,8 @@ class F2 {
R.gt(R.__, 2)(10); // true
R.gte(R.__, 6)(2); // false
R.has(R.__, {x: 0, y: 0})('x'); // true;
R.lt(R.__, 5)(10); // false
R.lte(R.__, 2)(1); // true
R.mathMod(R.__, 12)(15); // 3
R.merge(R.__, {x: 0})({x: 5, y: 2}); // {x: 0, y: 2}
};