Append Array of Strings on Value
Install
Install all functions of strman
yarn add strman
or just the appendArray function
yarn add strman.appendarray
Usage
import { appendArray } from 'strman'
// OR
import appendArray from 'strman.appendarray'
Parameters:
Name | Type | Description |
---|---|---|
value |
String | String initial |
append |
Array.<String> | Array with strings to append |
- Source:
Returns:
The concatenated string
- Type
- String
Example
appendArray('s', ['tr', 'm', 'an'])
// => 'strman'