update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
28
node_modules/ramda/es/applyTo.js
generated
vendored
Normal file
28
node_modules/ramda/es/applyTo.js
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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 =
|
||||
/*#__PURE__*/
|
||||
_curry2(function applyTo(x, f) {
|
||||
return f(x);
|
||||
});
|
||||
|
||||
export default applyTo;
|
||||
Loading…
Add table
Add a link
Reference in a new issue