1 | var _curry3 =
|
2 | /*#__PURE__*/
|
3 | require("./internal/_curry3");
|
4 |
|
5 | var equals =
|
6 | /*#__PURE__*/
|
7 | require("./equals");
|
8 | /**
|
9 | * Takes a function and two values in its domain and returns `true` if the
|
10 | * values map to the same value in the codomain; `false` otherwise.
|
11 | *
|
12 | * @func
|
13 | * @memberOf R
|
14 | * @since v0.18.0
|
15 | * @category Relation
|
16 | * @sig (a -> b) -> a -> a -> Boolean
|
17 | * @param {Function} f
|
18 | * @param {*} x
|
19 | * @param {*} y
|
20 | * @return {Boolean}
|
21 | * @example
|
22 | *
|
23 | * R.eqBy(Math.abs, 5, -5); //=> true
|
24 | */
|
25 |
|
26 |
|
27 | var eqBy =
|
28 | /*#__PURE__*/
|
29 | _curry3(function eqBy(f, x, y) {
|
30 | return equals(f(x), f(y));
|
31 | });
|
32 |
|
33 | module.exports = eqBy; |
\ | No newline at end of file |