update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
27
node_modules/ramda/es/identity.js
generated
vendored
Normal file
27
node_modules/ramda/es/identity.js
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import _curry1 from "./internal/_curry1.js";
|
||||
import _identity from "./internal/_identity.js";
|
||||
/**
|
||||
* A function that does nothing but return the parameter supplied to it. Good
|
||||
* as a default or placeholder function.
|
||||
*
|
||||
* @func
|
||||
* @memberOf R
|
||||
* @since v0.1.0
|
||||
* @category Function
|
||||
* @sig a -> a
|
||||
* @param {*} x The value to return.
|
||||
* @return {*} The input value, `x`.
|
||||
* @example
|
||||
*
|
||||
* R.identity(1); //=> 1
|
||||
*
|
||||
* const obj = {};
|
||||
* R.identity(obj) === obj; //=> true
|
||||
* @symb R.identity(a) = a
|
||||
*/
|
||||
|
||||
var identity =
|
||||
/*#__PURE__*/
|
||||
_curry1(_identity);
|
||||
|
||||
export default identity;
|
||||
Loading…
Add table
Add a link
Reference in a new issue