juxt

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
3
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
3 KB
juxt applies a list of functions to a list of values.
1 contributor
Install juxt as a package?
Copied
npm i @bit/justin-capalbo.ramda.juxt
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
juxt (
fns:Array
) : Function

juxt applies a list of functions to a list of values.

Example
const getRange = R.juxt([Math.min, Math.max]);
     getRange(3, 4, 9, -3); //=> [-3, 9]
Argument
fns: Array

An array of functions

Returns
Function

A function that returns a list of values after applying each of the original `fns` to its parameters.

Help and resources