swc/bundler/tests/.cache/deno/2a148ed2236f95bf3d312375264d5b808491bbb3.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

27 lines
648 B
TypeScript

// Loaded from https://deno.land/x/ramda@v0.27.2/source/applyTo.js
import _curry2 from './internal/_curry2.js';
/**
* Takes a value and applies a function to it.
*
* This function is also known as the `thrush` combinator.
*
* @func
* @memberOf R
* @since v0.25.0
* @category Function
* @sig a -> (a -> b) -> b
* @param {*} x The value
* @param {Function} f The function to apply
* @return {*} The result of applying `f` to `x`
* @example
*
* const t42 = R.applyTo(42);
* t42(R.identity); //=> 42
* t42(R.add(1)); //=> 43
*/
var applyTo = _curry2(function applyTo(x, f) { return f(x); });
export default applyTo;