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

utils/concat
v1.1.0
1.1.0
1.0.0
Returns the result of concatenating the given lists or strings

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

concat (firstList:(Array | String), secondList:(Array | String)) : (Array | String)

Returns the result of concatenating the given lists or strings.

Note: R.concat expects both arguments to be of the same type, unlike the native Array.prototype.concat method. It will throw an error if you concat an Array with a non-Array value.

Dispatches to the concat method of the first argument, if present. Can also concatenate two members of a fantasy-land compatible semigroup.

Example

R.concat('ABC', 'DEF'); // 'ABCDEF'
     R.concat([4, 5, 6], [1, 2, 3]); //=> [4, 5, 6, 1, 2, 3]
     R.concat([], []); //=> []

Arguments

firstList: (Array | String)

The first list

secondList: (Array | String)

The second list

Returns

(Array | String)

A list consisting of the elements of `firstList` followed by the elements of `secondList`.