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:
631 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | var _curry1 =
|
---|
| 2 | /*#__PURE__*/
|
---|
| 3 | require("./internal/_curry1.js");
|
---|
| 4 |
|
---|
| 5 | var _identity =
|
---|
| 6 | /*#__PURE__*/
|
---|
| 7 | require("./internal/_identity.js");
|
---|
| 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 |
|
---|
| 29 | var identity =
|
---|
| 30 | /*#__PURE__*/
|
---|
| 31 | _curry1(_identity);
|
---|
| 32 |
|
---|
| 33 | module.exports = identity; |
---|
Note:
See
TracBrowser
for help on using the repository browser.