main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
620 bytes
|
Line | |
---|
1 | var _curry3 =
|
---|
2 | /*#__PURE__*/
|
---|
3 | require("./internal/_curry3.js");
|
---|
4 |
|
---|
5 | var equals =
|
---|
6 | /*#__PURE__*/
|
---|
7 | require("./equals.js");
|
---|
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; |
---|
Note:
See
TracBrowser
for help on using the repository browser.