swc/bundler/tests/.cache/deno/d788148ec19b2ebf1fcefac5e7cef768245b609a.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

29 lines
650 B
TypeScript

// Loaded from https://deno.land/x/ramda@v0.27.2/source/identity.js
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 = _curry1(_identity);
export default identity;