added second placeholder definition to divide

This commit is contained in:
Drew Wyatt
2018-11-01 09:59:32 -04:00
parent 8c20e3d34f
commit a0dcb70486
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -889,6 +889,7 @@ declare namespace R {
* Divides two numbers. Equivalent to a / b.
*/
divide(__: Placeholder, b: number): (a: number) => number;
divide(__: Placeholder): (b: number, a: number) => number;
divide(a: number, b: number): number;
divide(a: number): (b: number) => number;
+1
View File
@@ -129,6 +129,7 @@ class F2 {
R.concat(R.__, [4, 5, 6])([1, 2, 3]); // [1, 2, 3, 4, 5, 6]
R.concat(R.__)([4, 5, 6], [1, 2, 3]); // [1, 2, 3, 4, 5, 6]
R.contains(R.__, [1, 2, 3])(3); // true
R.divide(R.__)(2, 42); // 21
R.divide(R.__, 2)(42); // 21
R.gt(R.__, 2)(10); // true
R.gte(R.__, 6)(2); // false