Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

pipe

v0.26.1arrow_drop_down
v0.26.1
STATUS
Passing
DOWNLOADS
827
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
A year ago
SIZE
2 KB
Performs left-to-right function composition.
1 contributor
Install pipe as a package?
Copied
npm i @bit/ramda.ramda.pipe
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
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
const f = pipe(
  Math.pow,
  negate,
  inc,
modifieddraft
chevron_left
chevron_right
pipe (
functions:...Function
) : Function

Performs left-to-right function composition. The first argument may have any arity; the remaining arguments must be unary.

In some libraries this function is named sequence.

Note: The result of pipe is not automatically curried.

Example
const f = R.pipe(Math.pow, R.negate, R.inc);

     f(3, 4); // -(3^4) + 1
Argument
functions: ...Function
Returns
Function