updated mathMod to include placeholder definition

This commit is contained in:
Drew Wyatt
2018-10-31 18:33:32 -04:00
parent 3e1991ec61
commit 7a5ef000dc
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1376,6 +1376,7 @@ declare namespace R {
* mathMod(-17, 5) is 3. mathMod requires Integer arguments, and returns NaN
* when the modulus is zero or negative.
*/
mathMod(__: Placeholder, b: number): (a: number) => number;
mathMod(a: number, b: number): number;
mathMod(a: number): (b: number) => number;
+1
View File
@@ -132,6 +132,7 @@ class F2 {
R.divide(R.__, 2)(42); // 21
R.gt(R.__, 2)(10); // true
R.has(R.__, {x: 0, y: 0})('x'); // true;
R.mathMod(R.__, 12)(15); // 3
};
() => {