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

utils/init
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Returns all but the last element of the given list or string.

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

init (list:*) : *

Returns all but the last element of the given list or string.

Example

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

     R.init('abc');  //=> 'ab'
     R.init('ab');   //=> 'a'
     R.init('a');    //=> ''
     R.init('');     //=> ''

Argument

list: *

Returns

*