Share your code. Components are building blocks, you are the architect.

utils/slice
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Returns the elements of the given list or string (or object with a `slice`

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/slice in your project
npm i @bit/bit.ramda.utils.slice
Copied

slice (fromIndex:Number, toIndex:Number, list:*) : *

Returns the elements of the given list or string (or object with a slice method) from fromIndex (inclusive) to toIndex (exclusive).

Dispatches to the slice method of the third argument, if present.

Example

R.slice(1, 3, ['a', 'b', 'c', 'd']);        //=> ['b', 'c']
     R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']
     R.slice(0, -1, ['a', 'b', 'c', 'd']);       //=> ['a', 'b', 'c']
     R.slice(-3, -1, ['a', 'b', 'c', 'd']);      //=> ['b', 'c']
     R.slice(0, 3, 'ramda');                     //=> 'ram'

Arguments

fromIndex: Number

The start index (inclusive).

toIndex: Number

The end index (exclusive).

list: *

Returns

*