1 contributor
Like
Install insert as a package?
Copied
npm i @bit/justin-capalbo.ramda.insert
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
insert (
index:
Number
,elt:
*
,list:
) : Array
Array
Inserts the supplied element into the list, at the specified index
. _Note that
this is not destructive_: it returns a copy of the list with the changes. No lists have been harmed in the application of this function.
Example
Arguments
index:
Number
The position to insert the element
elt:
*
The element to insert into the Array
list:
Array
The list to insert into
Returns
Array
A new Array with `elt` inserted at `index`.