join

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
4 KB
Returns a string made by inserting the `separator` between each element and concatenating all the elements into a single string.
1 contributor
Install join as a package?
Copied
npm i @bit/justin-capalbo.ramda.join
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
join (
separator:(Number | String),
xs:Array
) : String

Returns a string made by inserting the separator between each element and concatenating all the elements into a single string.

Example
const spacer = R.join(' ');
     spacer(['a', 2, 3.4]);   //=> 'a 2 3.4'
     R.join('|', [1, 2, 3]);    //=> '1|2|3'
Arguments
separator: (Number | String)

The string used to separate the elements.

xs: Array

The elements to join into a string.

Returns
String

str The string made by concatenating `xs` with `separator`.

Help and resources