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

utils/reverse
v1.0.0
1.0.0
MIT
PUBLIC
0
0     DEPENDENCIES
Build: none
BuildNone
Returns a new list or string with the elements or characters in reverse

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/reverse in your project
npm i @bit/bit.ramda.utils.reverse
Copied

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)