Methods
(static) joinWithBlank(array) → {string}
- Source:
- Since:
- 0.13.0
- See:
Return a string joining the provided array items with a blank
Example
> joinWithBlank(['a', 'b', 'c'])
'a b c'
Parameters:
Name | Type | Description |
---|---|---|
array |
array |
Returns:
- Type
- string
(static) joinWithColon(array) → {string}
- Source:
- Since:
- 0.1.0
- See:
Return a string joining the provided array items with a colon
Example
> joinWithColon(['a', 'b', 'c'])
'a:b:c'
Parameters:
Name | Type | Description |
---|---|---|
array |
array |
Returns:
- Type
- string
(static) joinWithDash(array) → {string}
- Source:
- Since:
- 0.1.0
- See:
Return a string joining the provided array items with a dash
Example
> joinWithDash(['a', 'b', 'c'])
'a-b-c'
Parameters:
Name | Type | Description |
---|---|---|
array |
array |
Returns:
- Type
- string
(static) joinWithSemicolon(array) → {string}
- Source:
- Since:
- 0.1.0
- See:
Return a string joining the provided array items with a semicolon
Example
> joinWithSemicolon(['a', 'b', 'c'])
'a;b;c'
Parameters:
Name | Type | Description |
---|---|---|
array |
array |
Returns:
- Type
- string