range

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
906 B
Returns a list of numbers from `from` (inclusive) to `to` (exclusive).
1 contributor
Install range as a package?
Copied
npm i @bit/justin-capalbo.ramda.range
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
range (
from:Number,
to:Number
) : Array

Returns a list of numbers from from (inclusive) to to (exclusive).

Example
R.range(1, 5);    //=> [1, 2, 3, 4]
     R.range(50, 53);  //=> [50, 51, 52]
Arguments
from: Number

The first number in the list.

to: Number

One more than the last number in the list.

Returns
Array

The list of numbers in the set `[a, b)`.

Help and resources