Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

concat

v0.26.1arrow_drop_down
v0.26.1
STATUS
Passing
DOWNLOADS
75
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 months ago
SIZE
4 KB
subject
Returns the result of concatenating the given lists or strings
1 contributor
Use concat in your project ?
Copied
npm i @bit/ramda.ramda.concat
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
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';
revert changes
reload
toggle layout
maximize
concat("ABC", "DEF");
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`.