1 contributor
Like
Install adjust as a package?
Copied
npm i @bit/justin-capalbo.ramda.adjust
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
adjust (
idx:
Number
,fn:
Function
,list:
) : (Array | Arguments)
Array
Applies a function to the value at the given index of an array, returning a new copy of the array with the element at the given index replaced with the result of the function application.
Example
Arguments
idx:
Number
The index.
fn:
Function
The function to apply.
list:
(Array | Arguments)
An array-like object whose value at the supplied index will be replaced.
Returns
Array
A copy of the supplied array-like object with the element at index `idx` replaced with the value returned by applying `fn` to the existing element.