Share your code. Components are building blocks, you are the architect.

utils/nth-arg
v1.0.0
1.0.0
MIT
PUBLIC
0
Build: none
BuildNone
Returns a function which returns its nth argument.

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/nth-arg in your project
npm i @bit/bit.ramda.utils.nth-arg
Copied

nthArg (n:Number) : Function

Returns a function which returns its nth argument.

Example

R.nthArg(1)('a', 'b', 'c'); //=> 'b'
     R.nthArg(-1)('a', 'b', 'c'); //=> 'c'

Argument

n: Number

Returns

Function