leftTrim

Remove all spaces on left.

Install

Install all functions of strman

yarn add strman

or just the leftTrim function

yarn add strman.lefttrim

Usage

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

The String!

char String <optional>
''

if you need remove other char on left boarders.

Source:
Returns:

String without left boarders spaces.

Type
String
Example
const title = '   strman'
leftTrim(title)
// => 'strman'