UNPKG

625 BJavaScriptView Raw
1var _curry1 =
2/*#__PURE__*/
3require("./internal/_curry1");
4
5var _identity =
6/*#__PURE__*/
7require("./internal/_identity");
8/**
9 * A function that does nothing but return the parameter supplied to it. Good
10 * as a default or placeholder function.
11 *
12 * @func
13 * @memberOf R
14 * @since v0.1.0
15 * @category Function
16 * @sig a -> a
17 * @param {*} x The value to return.
18 * @return {*} The input value, `x`.
19 * @example
20 *
21 * R.identity(1); //=> 1
22 *
23 * const obj = {};
24 * R.identity(obj) === obj; //=> true
25 * @symb R.identity(a) = a
26 */
27
28
29var identity =
30/*#__PURE__*/
31_curry1(_identity);
32
33module.exports = identity;
\No newline at end of file