concat

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
4
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
4 KB
Returns the result of concatenating the given lists or strings.
1 contributor
Install concat as a package?
Copied
npm i @bit/justin-capalbo.ramda.concat
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
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`.

Help and resources