v-trimleftbychar

1.0.0 • Public • Published

trim-left-by-char

Trim a string from the left removing it of provided character.

Install

$ npm install --save trim-left-by-char

Usage

const trimLeftByChar = require('trim-left-by-char');

trimLeftByChar('00unicorns', 0);
//=> 'unicorns'

API

trimLeftByChar(input, char)

input

Type: string

Input string that you want to trim of characters.

char

Type: string
Default: ''

Character you want to trim from string.

License

MIT © Vedran Blazenka

Readme

Keywords

none

Package Sidebar

Install

npm i v-trimleftbychar

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vblazenka