drop

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
4
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
1 KB
Returns all but the first `n` elements of the given list, string, or transducer/transformer (or object with a `drop` method).
1 contributor
Install drop as a package?
Copied
npm i @bit/justin-capalbo.ramda.drop
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
drop (
n:Number,
list:*
) : *

Returns all but the first n elements of the given list, string, or transducer/transformer (or object with a drop method).

Dispatches to the drop method of the second argument, if present.

Example
R.drop(1, ['foo', 'bar', 'baz']); //=> ['bar', 'baz']
     R.drop(2, ['foo', 'bar', 'baz']); //=> ['baz']
     R.drop(3, ['foo', 'bar', 'baz']); //=> []
     R.drop(4, ['foo', 'bar', 'baz']); //=> []
     R.drop(3, 'ramda');               //=> 'da'
Arguments
n: Number
list: *
Returns
*

A copy of list without the first `n` elements

Help and resources