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

compose

v1.0.0arrow_drop_down
v1.0.0
STATUS
Passing
DOWNLOADS
0
VISIBILITY
Public
PUBLISHED
8 months ago
SIZE
531 B
compose functions into one function from right to left
1 contributor
Use compose in your project ?
Copied
npm i @bit/ponchicken.tst.compose
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
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
chevron_left
chevron_right
compose (
functions:Array<function>
) : function

compose functions into one function from right to left

Argument
functions: Array<function>
Returns
function

Test Summary

compose the compose function should exist

Pass

compose should compose two functions from right to left

Pass

compose should compose three functions from right to left

Pass