prependArray

Returns a new string starting with 'prepends'.

Install

Install all functions of strman

yarn add strman

or just the prependArray function

yarn add strman.prependarray

Usage

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'