Returns a new string starting with 'prepends'.
Install
Install all functions of strman
yarn add strmanor just the prependArray function
yarn add strman.prependarrayUsage
import { prependArray } from 'strman'
// OR
import prependArray from 'strman.prependarray'Parameters:
| Name | Type | Description |
|---|---|---|
value |
String | The String! |
prepends |
Array.<String> | Strings to prepend. |
- Source:
Returns:
The String prepended!
- Type
- String
Example
const title = 'strman'
prependArray(title, ['_'])
// => '_strman'