prepend

Returns a new string starting with 'prepends'.

Install

Install all functions of strman

yarn add strman

or just the prepend function

yarn add strman.prepend

Usage

import { prepend } from 'strman'
// OR
import prepend from 'strman.prepend'
Parameters:
Name Type Attributes Description
value String

The String!

prepends String <repeatable>

Strings to prepend.

Source:
Returns:

The String prepended!

Type
String
Example
const title = 'strman'
prepend(title, '_')
// => '_strman'