apply-to

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
796 B
Takes a value and applies a function to it.
1 contributor
Install apply-to as a package?
Copied
npm i @bit/justin-capalbo.ramda.apply-to
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
applyTo (
x:*,
f:Function
) : *

Takes a value and applies a function to it.

This function is also known as the thrush combinator.

Example
const t42 = R.applyTo(42);
     t42(R.identity); //=> 42
     t42(R.add(1)); //=> 43
Arguments
x: *

The value

f: Function

The function to apply

Returns
*

The result of applying `f` to `x`

Help and resources