remove

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
3
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
944 B
Removes the sub-list of `list` starting at index `start` and containing `count` elements.
1 contributor
Install remove as a package?
Copied
npm i @bit/justin-capalbo.ramda.remove
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
remove (
start:Number,
count:Number,
list:Array
) : Array

Removes the sub-list of list starting at index start and containing count elements. 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
R.remove(2, 3, [1,2,3,4,5,6,7,8]); //=> [1,2,6,7,8]
Arguments
start: Number

The position to start removing elements

count: Number

The number of elements to remove

list: Array

The list to remove from

Returns
Array

A new Array with `count` elements from `start` removed.

Help and resources