added placeholder definition to gte

This commit is contained in:
Drew Wyatt
2018-11-01 09:47:58 -04:00
parent 430e4c0c9a
commit ddbf2a0789
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -1073,6 +1073,7 @@ declare namespace R {
/**
* Returns true if the first parameter is greater than or equal to the second.
*/
gte(__: Placeholder, b: number): (a: number) => boolean;
gte(a: number, b: number): boolean;
gte(a: number): (b: number) => boolean;
@@ -1513,6 +1514,7 @@ declare namespace R {
* Note that this functions preserves the JavaScript-style behavior for
* modulo. For mathematical modulo see `mathMod`
*/
modulo(__: Placeholder, b: number): (a: number) => number;
modulo(a: number, b: number): number;
modulo(a: number): (b: number) => number;
+1
View File
@@ -131,6 +131,7 @@ class F2 {
R.contains(R.__, [1, 2, 3])(3); // true
R.divide(R.__, 2)(42); // 21
R.gt(R.__, 2)(10); // true
R.gte(R.__, 6)(2); // false
R.has(R.__, {x: 0, y: 0})('x'); // true;
R.mathMod(R.__, 12)(15); // 3
R.merge(R.__, {x: 0})({x: 5, y: 2}); // {x: 0, y: 2}