1 contributor
Like
Install insert-all as a package?
Copied
npm i @bit/justin-capalbo.ramda.insert-all
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
insertAll (
index:
Number
,elts:
Array
,list:
) : Array
Array
Inserts the sub-list 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 sub-list
elts:
Array
The sub-list to insert into the Array
list:
Array
The list to insert the sub-list into
Returns
Array
A new Array with `elts` inserted starting at `index`.