reverse

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
8
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
774 B
Returns a new list or string with the elements or characters in reverse order.
1 contributor
Install reverse as a package?
Copied
npm i @bit/justin-capalbo.ramda.reverse
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
reverse (
list:(Array | String)
) : (Array | String)

Returns a new list or string with the elements or characters in reverse order.

Example
R.reverse([1, 2, 3]);  //=> [3, 2, 1]
     R.reverse([1, 2]);     //=> [2, 1]
     R.reverse([1]);        //=> [1]
     R.reverse([]);         //=> []

     R.reverse('abc');      //=> 'cba'
     R.reverse('ab');       //=> 'ba'
     R.reverse('a');        //=> 'a'
     R.reverse('');         //=> ''
Argument
list: (Array | String)
Returns
(Array | String)

Help and resources